FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » isset not working with select
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: isset not working with select [message #181421 is a reply to message #181419] Wed, 15 May 2013 21:07 Go to previous messageGo to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
On Wed, 15 May 2013 20:34:30 +0000 (UTC), Denis McMahon wrote:

> 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

Thanks. I just couldn't see it for nuthin.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mkdir no such file or directory
Next Topic: makes searching and booking applications airfares
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 23:44:35 GMT 2024

Total time taken to generate the page: 0.08229 seconds