mysql_fetch_array
Hi,
I've faced with a problem concerned with a warning message-
"mysql_fetch_array(): supplied argument is not a valid MySQL result " in my PHP script
about the line ...
$query='select * from url_types order by type asc';
$result=mysql_query($query);
while($row=mysql_fetch_array($result)) {
echo '<option value="', $row[0], '">' , stripslashes($row[1]), '</option>';
}
I've already checked the query statement in MySQL database, the return statement is alright.
Please give me some instructions please.
Subject
Written By
Posted
mysql_fetch_array
June 20, 2005 09:35AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.