code php (if else)

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
iserra
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jul 14, 2006 9:45 am

code php (if else)

Post by iserra » Tue Nov 13, 2007 6:58 pm

??? :pop
I'm with some doubts... my php knowledge are weak and he/she would like to know how to put the code correctamente in the index.php in joomla.

it would like that was like this (I know that in programming terms is not correct):

if{

}else{
0) mosLoadModules('user5',-1); ?>
{

the following:
1) in the it paginates main (home) will take a slideshow (rotative images) type - it doesn't take anything of texts - it will be a module 2) in the remaining buttons they will be in texts - mainbody

thaks for your help

User avatar
donnan
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Jun 30, 2007 1:23 am
Location: Sydney, Australia
Contact:

Re: code php (if else)

Post by donnan » Wed Nov 14, 2007 12:08 am

You don't have any argument to be decided on.

Code: Select all


if {


You need something like:

Code: Select all

if ($a == $b) {


Cheers
Paul
Joomla Basics TUTOR
2 hours Basic Joomla tutoring 1 on 1
You will learn more in 2 hours with me than you will teaching yourself in a month.  Guaranteed!
Or check out my own Joomla website at: http://www.opportunity-dock.com

User avatar
pe7er
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, The Netherlands
Contact:

Re: code php (if else)

Post by pe7er » Wed Nov 14, 2007 1:08 am

MOD note: Crosspost deleted. Please do not crosspost your messages. See the Forum rules: http://forum.joomla.org/index.php/topic,65.0.html
Kind Regards,
Peter Martin (aka pe7er)
db8.nl - Joomla! implementation, programming, template and component development [Dutch]
>> Questions? Get help more easily with JTS-post Assistant: viewtopic.php?f=428&t=272481


Post Reply