Can anyone tell me what’s wrong with this mysql_fetch_array?
[code=php]$sql = “SELECT * FROM ‘products’ WHERE ‘category’=$ID”;
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result))
In the tutorial it’s written as
[code=php]$sql = “SELECT * FROM PRODUCTS where Category=” . $ID;
$result = @mysql_query($sql);
while ($row=mysql_fetch_array($result))
But that didn’t work either. The above are the first lines of code after the following…
[code=php]<?php
mysql_connect(“*****.com”, “**********”, “*******”);
mysql_select_db(“*****”);
I searched for other posts regarding this but I still can’t resolve this. I keep getting “Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/xxxxxxxxxxxxxxxbrowse.php on line 6”