Jump to content

Warning: mysql_fetch_array() expects parameter 1 to be resource


Anwar11

Recommended Posts

got error in this line :/ 
 

$sql = "SELECT * FROM product-categories";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) <-- ( error in this line ) :/
  {
  echo "<tr><td><font color=blue>";
  echo "<a href=Items.php?id=".$row['id'].">".$row['id'] . " " . $row['name']. "</a>";
  echo "</td></tr>";
  
  }

please help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.