Can anyone see why this isn't working?
$category = 1;
$CategoryResult = mysql_query("SELECT * FROM Category WHERE Index = '$category'");
if (!$CategoryResult)
die("Could not retrieve results from category $category: " . mysql_error());
Mysql error as follows:
Could not retrieve results from category 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Index = '1'' at line 1
Index is an auto-increment primary key of the table Category.