Re: [PHP] ternary operator sintax help

2009-10-06 Thread Ashley Sheridan
On Tue, 2009-10-06 at 19:43 +0100, MEM wrote: > Hello all, > > I'm trying to display a div, only when some php value is set. > Since this will be near html, I'd like to keep it on one line. So, I'd love > to use shortcuts and a ternary operator for the effect. > > I'm having something like this

RE: [PHP] ternary operator sintax help

2009-10-06 Thread MEM
@lists.php.net Subject: Re: [PHP] ternary operator sintax help On Tue, 2009-10-06 at 19:43 +0100, MEM wrote: Hello all, I'm trying to display a div, only when some php value is set. Since this will be near html, I'd like to keep it on one line. So, I'd love to use shortcuts and a t

[PHP] ternary operator sintax help

2009-10-06 Thread MEM
Hello all, I'm trying to display a div, only when some php value is set. Since this will be near html, I'd like to keep it on one line. So, I'd love to use shortcuts and a ternary operator for the effect. I'm having something like this right now, but the div still appears even if the error is NOT