Hi i have 2 files one is Left.php which is is getting categories of product...code is
<?php
require('Connection.php');
$query ="select distinct(P_Category) from tblProducts_info";
$result = mysql_query($query);
if(!$result)
{
die('echo invalid query:,mysql_error()');
}
else
{
if(mysql_num_rows($result)>0)
{
while($rows= mysql_fetch_array($result))
{
$P_Category = $rows['P_Category'];
$cat_List="";
$cat_List = "<li class=\"odd\"><a href=\"services.html\"?P_Category=$P_Category>$P_Category</a></li> ";
}}
}
?>
another file is main.php where i include above file....
<?php include('Breaks/Left.php'); ?>
But the problem is i m only able to see one categorie in my page.....and i want to see all categories in page...
Hope somebody will help me...
Regards....
Farhad