close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Problem with dataassist not working after adding new Rs

Thread began 12/29/2014 2:55 pm by Kumel | Last modified 2/27/2015 3:22 pm by Kumel | 2376 views | 51 replies

Kumel

Problem with dataassist not working after adding new Rs

Ok i had created dataassist pages.
So i need link to have its own url so had changed some settings from this post as discussed:
http://www.webassist.com/forums/posts.php?pid=185247

Now after that things added.

I m stuck at a problem.

I have a product detail page. All seems fine.

Permalink is used & etc.

Now when i add a new RS then problem seems to appear. Must be a problem with codes.
Please can you take a look at it.?


For instance currently all product details are visible on product details page

But as i add another RS for subcat then i don't get an error but all product details are not shown. no error as well.


Before adding new RS:

<?php
$colname_ProductsPerm = "-1";
if (isset($_GET['perm'])) {
$colname_ProductsPerm = $_GET['perm'];
}
$colname_Products = "-1";
if (isset($_GET['ProductID'])) {
$colname_Products = $_GET['ProductID'];
}
mysql_select_db($database_con, $con);
$query_Products = sprintf("SELECT * FROM Products WHERE ProductID = %s OR ProductLink = %s", GetSQLValueString($colname_Products, "int"), GetSQLValueString($colname_ProductsPerm, "text"));
$Products = mysql_query($query_Products, $con) or die(mysql_error());
$row_Products = mysql_fetch_assoc($Products);
$totalRows_Products = mysql_num_rows($Products);
?>


After Adding new Rs:
<?php
$colname_Products = "-1";
if (isset($_GET['perm'])) {
$colname_Products = $_GET['perm'];
}
$colname_Products = "-1";
if (isset($_GET['ProductID'])) {
$colname_Products = $_GET['ProductID'];
}
mysql_select_db($database_con, $con);
$query_Products = sprintf("SELECT * FROM Products WHERE ProductID = %s OR ProductLink = %s", GetSQLValueString($colname_Products, "text"),GetSQLValueString($colname_Products, "text"));
$Products = mysql_query($query_Products, $con) or die(mysql_error());
$row_Products = mysql_fetch_assoc($Products);
$totalRows_Products = mysql_num_rows($Products);

mysql_select_db($database_con, $con);
$query_Recordset1 = "SELECT * FROM subcategories";
$Recordset1 = mysql_query($query_Recordset1, $con) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>

before.php and after.php attached.

before.php is only about product details.
without any subcat involved.

after.php is after adding subcat RS . simple RS


after adding New Rs i also replaced from this:

$colname_ProductsPerm = "-1";
if (isset($_GET['perm'])) {
$colname_ProductsPerm = $_GET['perm'];
}
$colname_Products = "-1";
if (isset($_GET['ProductID'])) {
$colname_Products = $_GET['ProductID'];
}

to this:

$colname_Products = "-1";
if (isset($_GET['perm'])) {
$colname_Products = $_GET['perm'];
}
$colname_Products = "-1";
if (isset($_GET['ProductID'])) {
$colname_Products = $_GET['ProductID'];
}

Yet no result showing up.

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