I have an issue reading from a database. here is the php code after I have connected to the database
echo ("Connected to MySQL");
echo ("<hr /><br />");
mysql_select_db("test");
echo ("Connected to database");
echo ("<hr /><br />");
$sql = mysql_query ("SELECT * FROM 'Product'");
while ($row = mysql_fetch_array($sql)){
echo ($rows['Product']);
echo ("<br />");
}
I am trying to display the items under the Products column on a web page.
this is the error I get
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /[SNIPPED]/test.php on line 12