close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem with dataassist not working after adding new Rs

Thread begun 12/29/2014 11:55 am by Kumel | Last modified 2/27/2015 12:22 pm by Jason Byrnes | 6713 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.

Sign in to reply to this post

Ray BorduinWebAssist

Why did you change the parameter code? I'm pretty sure you shouldn't be updating that.

What exactly stops working once you add the new recordset? I'm a bit confused.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kumel

no results are shown. just blank. Page is visible.

Before after screenshot attached.

Likas papaya soap is product name from product's table & then there is productdesc
but as i added new Rs nothing is shown. just blank.

I might have mess around with codes in parameter code cos it wasn't working so was cross checking & changing some codes.

Sign in to reply to this post

Ray BorduinWebAssist

Change the parameter code back... that would definitely break it. If you still have issues, please post the url and ftp information in the private area and I'll take a look.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kumel

Originally Said By: Ray Borduin
  Change the parameter code back... that would definitely break it. If you still have issues, please post the url and ftp information in the private area and I'll take a look.  
Sign in to reply to this post

Ray BorduinWebAssist

That link doesn't have a page name... and that ftp information takes me to an empty directory.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kumel

product-details.php (product page)

Products_Results.php all result page

Sign in to reply to this post

Kumel

when clicking product_result takes you to product_detail page but isnt working.

base url should be?

Sign in to reply to this post

Ray BorduinWebAssist

Please check the FTP information and make sure that user has access to the root directory. I can't seem to get in with that FTP info. I'll initiate Skype contact if necessary, but I'd like to debug the files first.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kumel

sorry. some minor change.

Now works fine.

Sign in to reply to this post
loading

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