close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

tutorial "Displaying Nested Recordsets With Data Bridge"

Thread began 3/14/2013 3:48 pm by tim299030 | Last modified 3/15/2013 5:09 pm by tim299030 | 806 views | 15 replies

tim299030

So don't I need some kind of variable like below (but not this) in the PowerStore example:

$colname_MenuItems = "-1";
if (isset($_GET['ItemCategory'])) {
$colname_MenuItems = $_GET['ItemCategory'];
}

Also, what column names in the Powerstore example would replace ItemCategory and CategoryID from the tutorial?

Below is the record set I'm referring to in the Tutorial and what I'm attempting in the PowerStore example:

Tutorial

<?php
$colname_MenuItems = "-1";
if (isset($_GET['ItemCategory'])) {
$colname_MenuItems = $_GET['ItemCategory'];
}
mysql_select_db($database_nested, $nested);
$query_MenuItems = sprintf("SELECT * FROM menu_items WHERE ItemCategory = %s", GetSQLValueString($colname_MenuItems, "int"));
$MenuItems = mysql_query($query_MenuItems, $nested) or die(mysql_error());
$row_MenuItems = mysql_fetch_assoc($MenuItems);
$totalRows_MenuItems = mysql_num_rows($MenuItems);
?>


Powerstore Nested tables

<?php
mysql_select_db($database_powerstore, $powerstore);
$query_MenuItems = "SELECT ps4_products.*,ps4_categories.CategoryName FROM ps4_products INNER JOIN ps4_productcategories ON ps4_products.ProductID = ps4_productcategories.ProductID INNER JOIN ps4_categories ON ps4_categories.CategoryID = ps4_productcategories.CategoryID";
$MenuItems = mysql_query($query_MenuItems, $storecss_powerstore) or die(mysql_error());
$row_MenuItems = mysql_fetch_assoc($MenuItems);
$totalRows_MenuItems = mysql_num_rows($MenuItems);
?>

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...