MySQL Forums
Forum List  »  PHP

mysql_fetch_array
Posted by: san san htwe
Date: June 20, 2005 09:35AM

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.

Options: ReplyQuote


Subject
Written By
Posted
mysql_fetch_array
June 20, 2005 09:35AM
June 20, 2005 10:38AM
June 20, 2005 11:51AM
June 20, 2005 09:10PM
June 21, 2005 08:18AM


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.