I have a vertical menu bar that has categories and these categories have products under them. The URL seen when I hover over the category is ..../index.php?catid=1
For instance I have
category- SCHOOLS (catid=1)
products - NPS, DPS...
In order to display the products, I need to use $_GET to get the 'catid' from the URL when I hover over the product.
This is the code for that part:
$fetchedcatid = $_GET['catid'];
$resultLIst = array();
$i = 0;
$sql="Select * from product_master where id = ".$fetchedcatid;
$query=mysql_query($sql) or die(mysql_error());
This gives me a MYSQL error since the catid is not stored in $fetchedcatid.
Please help. Thanks.