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

Home » Imported messages » comp.lang.php » AND and OR
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: AND and OR [message #182566 is a reply to message #182562] Fri, 16 August 2013 07:52 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <kujr9n$il7$1(at)speranza(dot)aioe(dot)org>,
Twayne <nobody(at)spamcop(dot)net> wrote:

> Hi,
>
> Doing code cleanup; something that seemed so simple is giving me lots of
> trouble for whatever reason.
>
> Win 7, XAMPP, PHP 5.3, online forms:
>
> In my cleanup efforts I've been trying to concatenate statements for
> things like the following:
>
> IF(strlen(var1) == 0) OR strlen(var2) == 0) OR strlen(var3) ==0))
> {
> code; notify user of errors that must be corrected.
> }

Come on you hairy fathead this is trivial stuff. Your parens are not
balanced.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Function Problem
Next Topic: switch with case 0
Goto Forum:
  

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

Current Time: Wed Sep 18 13:21:44 GMT 2024

Total time taken to generate the page: 0.05594 seconds