faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL : Questions in search of an Answer

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 16 people (6%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

What casues the error Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result

Oct 26th, 2003 13:43
Alexander Berkman, Debby Baker,


Well, the argument supplied to mysql_fetch_row is not a valid result
index.  Look Below:

$connection = mysql_connect(host, name, pass);
mysql_select_db("my_database");
$query = "SELECT * FROM my_table";
$result_index = mysql_query($query, $connection);
$row = mysql_fetch_row($result_index);

Are you passing a proper result index to mysql_fetch_row()??