amazing syntax error
am 28.12.2005 16:50:02 von deanAmazing. Maybe more a PHP problem.
This little phscript works perfect with PHP 5.0 and Mysql 5.0 ...under
Windows with IE and Netscape 8.0. Exactly the
same script gives a syntax error on line: b==$rec?> (little green arrow
pointing to ) with PHP 5.0 and Mysql 5.0
and Netscape 7.2 under Linux (redhat 9.0).
The script code:
$link = mysql_connect("localhost", "root", "pw")
or die("Impossible de se connecter : " . mysql_error());
$dbsel = mysql_select_db('mydb', $link);
$sql = "SELECT logon, number FROM mytable";
$result = mysql_query($sql);
$rec=mysql_num_rows($result);
echo $rec; // = 12
?>
(Variable $rec = 12 )
I really don't know what's wrong with this code ...
Do you?
Thanks
Dean