Dear people,
This has been making me mad for ages so though I would ask if any kind soul could help:
Here is my MySQL query...
$in_list = "SELECT * FROM shopping WHERE session='$session' AND product='$product' AND product_options='$product_options'";
$result = mysql_query( "$in_list");
$num_rows = mysql_num_rows($result);
When I print this to try and debugg I get:
Query= SELECT * FROM shopping WHERE session='901bece9333239e4d08ee21a9da4993d' AND product='TESAV5S61' AND product_options='6'
No Rows: 1
This is particularly strange because the database table shopping is completely empty?!?
Therefore why does it return 1?