close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Displaying unique StoreMessage div for each vendor

Thread began 1/25/2010 4:42 pm by iggymak198560 | Last modified 2/09/2010 4:55 am by iggymak198560 | 3861 views | 15 replies

iggymak198560

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);
?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...