- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- Trouble understanding a variable error
dreamcatcher - 6:11 am on Jul 28, 2007 (gmt 0)
WesleyC, there wasn`t an error in the code I posted, but there is in the new you posted. That would throw a parse error.
Its called a Ternary Operator [uk2.php.net].
Thread source: http://www.webmasterworld.com/php/3406783.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com