View Single Post
Newbie Member
4Dec2010,15:02  
Madhu_byke's Avatar
My problem is in this below code to find the SubcategoryName that was clicked so that products.php is loaded based on SubcategoryName condition.

$result1 = mysql_query("SELECT * FROM subcategory WHERE idCate = $mad ");
$result2 = mysql_num_fields($result);
while($row = mysql_fetch_array($result1))
{
echo "<tr>";
echo "<td>" . '<a href="products.php">' . $row['SubcategoryName'] . '</a>' . "</td>";