Re: [PHP-WIN] mysql_query seems not to work...

2001-05-13 Thread Johannes Janson
Hi, > $query="SELECT * FROM session where(user='$user_');"; > $rez=mysql_query($query,$db); try it like this. $query = "SELECT * FROM session WHERE user='$user'"; // without the first colon $rez = mysql_query($query, $db) or die(mysql_error()); hope it helps Johannes -- PHP Windows Mailing

[PHP-WIN] mysql_query seems not to work...

2001-05-13 Thread Bogdan Stanescu
$query="SELECT * FROM session where(user='$user_');"; $rez=mysql_query($query,$db); $rand_s=mysql_fetch_array($rez) or die("FAILURE"); echo $rand_s; this echoes nothing. same query in the console of mysql works. can u help me? Thanx in advance. -- PHP Windows Mailing List (http://www.php.net