Thread
:
do NOT use {} for single if-else statements..
View Single Post
02-19-2007, 01:04 AM
#
15
derek lapp
Status:
design rockstar
Join date:
Jan 2005
Location:
guelph, ontario
Expertise:
Software:
Posts:
2,246
iTrader:
0
/ 0%
Originally Posted by
CreativeLogic
Derek, your code won't even work, it will return a p**** error.
that's probably because of the <?=.
PHP Code:
echo
$condition
==
'true'
?
"it's good baby"
:
"it's bad"
;
works perfectly fine.
derek lapp
View Public Profile
Visit derek lapp's homepage!
Find More Posts by derek lapp