Re: if statement problem - simple fix?

From: Date: Fri, 23 Aug 2002 00:54:28 +0000
Subject: Re: if statement problem - simple fix?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-87328@lists.php.net to get a copy of this message
This is not the list you were looking for (waves hand in a slow arc), try the php-general list for this kind of question. php-dev is for people developing PHP itself, not for people developing PHP scripts. --Wez. PS: As a hint, read the manual to see the difference between the "and" operator and the "&&" operator. On 08/22/02, "JohnP" <aerc@aerc.biz> wrote: > Ok here is my problem: > > in this line of code: > if ($row["homepage"] !="http://" and > $row["homepage"] !="") { > > everything seems to work fine except the !="" for some reason it is not recognizing > that as legitamate - I get no errors but it is not actually working? > > any ideas? > > -- > Thanks ~ > John P

« previous php.dev (#87328) next »