note 35901 added to function.mssql-fetch-array

From: Date: Thu, 18 Sep 2003 16:47:17 +0000
Subject: note 35901 added to function.mssql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-56710@lists.php.net to get a copy of this message
// Query the database. $query = "SELECT user_id, first_name FROM users WHERE username='$u' AND password=PASSWORD('$p')"; $result = @mysql_query ($query); $row = mysql_fetch_array ($result, MYSQL_NUM); This is the error when I submit the arrary An error occurred in script C:\WINNT\system32\inetsrv\php\html\includes\config.inc on line 11: mysql_fetch_array(): supplied argument is not a valid MySQL result resource I receive after the query is ran. ---- Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-array.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35901 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35901&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35901&report=yes

« previous php.notes (#56710) next »