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


Can you give me some hint about this strange behavior

Thread began 6/02/2016 12:11 pm by Colin | Last modified 6/03/2016 3:31 am by Ray Borduin | 145 views | 2 replies |


Can you give me some hint about this strange behavior

when I use this extension 1.0.4 version...
in my own server,it can load the database data correctly
in my company's server (the server can use php and mysql too,because it use opencart system),it will appear that
the sql code print to the text

so...Can you give me some hint about this strange behavior or maybe tell me if any system environment that should check once again ?

by the way,I am very sure that my own server's code is the same as my company's server code

<?php require_once('Connections/connection.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
$oc_kshop_product_attr = new WA_MySQLi_RS("oc_kshop_product_attr",$connection,1);
$oc_kshop_product_attr->setQuery("SELECT field_value FROM oc_kshop_product_attr WHERE ref_pk_no = ? AND field_name = 'topic'");
$oc_kshop_product_attr->bindParam("i", "".(isset($_GET['ref_pk_no'])?$_GET['ref_pk_no']:"") ."", "-1"); //colname
<?php echo($oc_kshop_product_attr->getColumnVal("field_value")); ?>

Sign in to reply to this post

Ray BorduinWebAssist

When a SQL statement fails it writes the SQL statement to the page along with the error message. This seems to imply that it is failing without an error message, which makes it hard to tell exactly why.

If you open your rsobj.php file you should be able to find this line:
die($this->Statement . "<BR><BR>" . mysqli_error($this->Connection));

and then maybe add this line above it, so it reads:
die($this->Statement . "<BR><BR>" . mysqli_error($this->Connection));

That will give you a lot more information that might lead you to the reason it is failing.

Sign in to reply to this post


thanks Ray
problem solved,my fault and sorry about that
I forget to change the database's username and password in the connection.php

Sign in to reply to this post

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





Ease of use


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