Re: IF statement in WHILE statement

From: Date: Wed, 14 Feb 2007 05:20:43 +0000
Subject: Re: IF statement in WHILE statement
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-43078@lists.php.net to get a copy of this message
Thanks Chris... added the extra = and its working fine... Have a nice day everyone!!!! Matt ----- Original Message ----- From: "Chris" <dmagick@gmail.com> To: "Matthew Ferry" <mferry@retailautomation.biz> Cc: <php-db@lists.php.net> Sent: Tuesday, February 13, 2007 11:53 PM Subject: Re: [PHP-DB] IF statement in WHILE statement > Matthew Ferry wrote: > > Hello Everyone, > > > > Got another simple problem here.... > > > > I am trying to do a if statement inside a while (mysql_fetch_array) > > > > > > > > Here is my code: > > > > if ($link = mysql_tech_array($links)) { > > > > > > > > do { > > > > if ($_GET['page'] = "$link[file]") { > > You're assigning $_GET['page'] to whatever is in $link['file']. > > It should be '==' not '=' to do a comparison. > > -- > Postgresql & php tutorials > http://www.designmagick.com/ >

« previous php.db (#43078) next »