| 1:07 pm on Jan 7, 2003 (gmt 0)|
|I want to know how i can add another else |
Have a look at php.netīs documentation for elseif [php.net] and else [php.net].
BTW you might want to think about changing your URIs to a more SE friendly format.
| 1:24 pm on Jan 7, 2003 (gmt 0)|
Thanks for the reply,
I actuatly like this format because if someone tries to download my site with any download tool, they get a huge mes jumble index.php.htm
anyway the main site/news etc is index.php if I have the meta in there then it should be fine, or?
| 1:39 pm on Jan 7, 2003 (gmt 0)|
didnt work :-(
| 2:07 pm on Jan 7, 2003 (gmt 0)|
Dont worry about someone downloading your site. They wont see anything but html. PHP is processed server side. The only way someone will realistically be able to download your site is with ftp access.
If you want to get along with any scritping language write "readable" code. You need to be able to see where you have been and what you have been doing. If you produce an epic bit of code, how are you going to ammend that later. Use comments and structure it you will thank yourself.
| 2:37 pm on Jan 7, 2003 (gmt 0)|
In PHP it is elseif, in Perl elsif.
| 2:39 pm on Jan 7, 2003 (gmt 0)|
Good spot Andreas, but I expect nothing less form the php guru :)
Typo on my part
| 2:45 pm on Jan 7, 2003 (gmt 0)|
Brett should add some code highlighting features to this board. ;)
I often confuse those little syntax differences but XEmacs always helps me figure them out really fast. If the color does not change then it is the wrong syntax.