Re: SELECT + PARSE ERROR

From: Date: Mon, 08 Apr 2002 12:36:22 +0000
Subject: Re: SELECT + PARSE ERROR
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92024@lists.php.net to get a copy of this message
Hi the error appears because of the comas erroned syntaxis. why don't u try something easire as that : $varalacon = $nom."".$i; (i don't know if there is a space or not...in bold) $req = "SELECT * FROM dvds WHERE nomdvd='$varalacon' "; Hope it helps SR Jérome Moisy a écrit : > Hy, I try to do a SELECT but when I test my code I Have a parse > error.If someone can explain to me why. Code: $db = > mysql_connect(newsmanga_db); > $req = "SELECT * FROM dvds WHERE nomdvd='".$nom."".$i"' > "; /// PARSE > ERROR IN THIS LINE > $res=mysql_query($req, $db); > while ($ligne = mysql_fetch_object ($res)) { > print "<font size='2' color='#FFFFFF'><p > align='center'>"; > print "$ligne->resume</p></font></td></tr>"; > } > mysql_free_result ($res); > > ---------------------------------------------------------------- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#92024) next »