Re: isset not working with select [message #181419 is a reply to message #181418] |
Wed, 15 May 2013 20:34 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Wed, 15 May 2013 16:23:35 -0400, richard wrote:
> if (isset($cov[0]) && is_string($cov[0]) && strlen(cov[0])>4)
> { echo "<img src='http://mroldies.net/covers/$year/".$cov[0]."'>"; }
>
> Returns a parse error of unexpected '['.
> where did I screw up at?
I wrote: strlen( $cov[0] ) > 4
You wrote: strlen(cov[0])>4
You missed a $ in the "strlen( $cov[0] ) > 4" test. That missing "$"
character is significant!
> I want to check both images seperately as I may have one set, but not
> both.
Not unreasonable
--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
|
|
|