Php error

loois27

New Member
Messages
1
Reaction score
0
Points
0
I'm trying to fetch data from a table with php but I keep getting an error with mysql_fetch_array()

PHP:
Warning:  mysql_fetch_array(): supplied argument is not a valid MySQL
 

mumbhaki

New Member
Messages
24
Reaction score
0
Points
0
the argument must be a result from mysql_query(),

if(!$result = @mysql_query('SELECT * from tablex'))
{
die(mysql_error());
}

while($row = myql_fetch_array($result))
{
print_r($row);
}
 
Top