At 08.04.2002 14:23, you wrote:
>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
Try this :
$req = "SELECT * FROM dvds WHERE nomdvd='".$nom.$i."' ";
or if you want a space between $nom and $i, put it between the Quotes
>$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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php