News!
Thanks, I'll do that!
Just wanted to add that it is working as is for the main categories in the sidebar, but not the products, like you said in a way about the link updates which I think I can fix in the intermediate.php page in the menu:
<a href="<?php echo($assumedRoot); ?>Products_Results.php?Search=true&CategoryID=<?php print $row_ProductCategories['CategoryID']; ?>"><h2><?php print $row_ProductCategories['CategoryName']; ?></h2></a>
^^^ working
<ul >
<?php do { ?>
<?php if ($totalRows_ProductMenu > 0) { // Show if recordset not empty ?>
<li><span><a href="<?php echo($assumedRoot); ?>Products_Detail.php?ProductID=<?php echo $row_ProductMenu['ProductID']; ?>"><?php print $row_ProductMenu['ProductName']; ?></a></span></li>
^^^ not working - need to add CategoryID
maybe like:
<li><span><a href="<?php echo($assumedRoot); ?>Products_Detail.php?CategoryID=&ProductID=<?php print $row_ProductCategories['CategoryID']; ?><?php echo $row_ProductMenu['ProductID']; ?>"><?php print $row_ProductMenu['ProductName']; ?></a></span></li>
Would that be right? Want to ask you before I blow it up!
No that didn't work - I wrote that very wrong... but I still feel that that line will make it work!
How would we rewrite that so the URL would be .../Products_Detail.php?CategoryID=&ProductID= ... as you recall when I just typed it like that in the browser, (with appropriate numbers) the page came up...
If I type Products_Detail.php?Category=5&ProductID=205 in the browser the correct product appears but it's got the default image... would you agree that that line in intermediate.php will do the trick?
We're nearly there!
<?php } // Show if recordset not empty ?>
<?php } while ($row_ProductMenu = mysql_fetch_assoc($ProductMenu)); ?></ul>
<?php
mysql_free_result($ProductMenu);
?>
<?php } while ($row_ProductCategories = mysql_fetch_assoc($ProductCategories)); ?>
<?php
mysql_free_result($ProductCategories);
?>