Re: [PHP-DB] mysql_query failure

2001-02-16 Thread Russ Michell
>$con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) >or die ("Cant connect"); >mysql_select_db($DB_NAME); Try: $con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) or die ("Cant connect"); mysql_select_db($DB_NAME, $con); Also try and make your php functions like so: mysql_x() instead of:

[PHP-DB] mysql_query failure

2001-02-15 Thread Alexandre Sagala
I am getting this weird error with my mysql database. I have 100 pages with code to access my database. All my queries work except one. Here is an example $con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) or die ("Cant connect"); mysql_select_db($DB_NAME); $rst = mysql_query("SELECT * FROM D