I have a problem.
When I try to select data from a table using this code:
$sql = "SELECT * FROM users";
$result = mysql_query($sql);
while($rad = mysql_fetch_array($result))
{
echo $rad['user'];
}
It works.
When I select data from another table with basically the same code I get an error.
$sql = "SELECT * FROM order";
$result = mysql_query($sql);
while($rad = mysql_fetch_array($result))
{
echo $rad['url'];
}
Can someone please tell me what I'm doing wrong here.
This is the error message I get when I run the second code:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in