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

Upgrade MySQL to MySQLi

Thread began 3/22/2021 9:47 am by joerg431091 | Last modified 6/21/2021 2:15 pm by joerg431091 | 634 views | 25 replies


Hi Ray,

I upgraded to the DataBridge v2 and started as you described in your previous post. It seems pretty straight forward but I am now probably running into some coding issues / MySQL - MySQLi conflicts. I am trying to learn and fix some of them myself but want to ask you to help with the first problems - maybe they help with the other pages too.

I have not uploaded to the server yet so the following error message refer to my local MAMP:

In the "/products_result.php" page I get the following error:

Notice: Undefined index: ProductCategoryID in /Applications/MAMP/htdocs/NavariniUSA/products_results.php on line 10

Notice: Undefined index: ProductSubCat2ID in /Applications/MAMP/htdocs/NavariniUSA/products_results.php on line 11

Notice: Undefined index: CategoryID in /Applications/MAMP/htdocs/NavariniUSA/products_results.php on line 24

Fatal error: Uncaught Error: Call to undefined function GetSQLValueString() in /Applications/MAMP/htdocs/NavariniUSA/products_results.php:34 Stack trace: #0 {main} thrown in /Applications/MAMP/htdocs/NavariniUSA/products_results.php on line 34

The first notice messages refer to:

Line 10:
$WADAproducts->bindParam("i", "".($_GET['ProductCategoryID']) ."", "-1"); //ProductCategory

Line 11:
$WADAproducts->bindParam("i", "".($_GET['ProductSubCat2ID']) ."", "-1"); //subcategory3

Line 24:
$rs_Categories->bindParam("i", "".($_GET['CategoryID']) ."", "-1"); //CatName

The Fatal error to:

Line 34:
$query_rs_SubCategories2 = sprintf("SELECT * FROM subcategories2 WHERE SubCat2ID = %s", GetSQLValueString($SubCat2Name_rs_SubCategories2, "int"));

The entire code above the Doctype is:

<?php require_once('Connections/Amiganien_DB_i.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
$WADAproducts = new WA_MySQLi_RS("WADAproducts",$Amiganien_DB_i,0);
$WADAproducts->setQuery("SELECT * FROM products WHERE ProductCategoryID = ? AND ProductStore LIKE '%%NA%%' OR ProductSubCatID = ? AND ProductStore LIKE '%%NA%%' OR ProductSubCat2ID = ? AND ProductStore LIKE '%%NA%%' ORDER BY ProductPrice ASC");
$WADAproducts->bindParam("i", "".($_GET['ProductCategoryID']) ."", "-1"); //ProductCategory
$WADAproducts->bindParam("i", "".($_GET['ProductSubCat2ID']) ."", "-1"); //subcategory3
$WADAproducts->bindParam("i", "".($_GET['ProductSubCatID']) ."", "-1"); //subcategory2
$rs_SubCategories = new WA_MySQLi_RS("rs_SubCategories",$Amiganien_DB_i,1);
$rs_SubCategories->setQuery("SELECT * FROM subcategories WHERE SubCatID = ?");
$rs_SubCategories->bindParam("i", "".($_GET['SubCatID']) ."", "-1"); //SubCatName
$rs_Categories = new WA_MySQLi_RS("rs_Categories",$Amiganien_DB_i,1);
$rs_Categories->setQuery("SELECT * FROM productcategories WHERE CategoryID = ?");
$rs_Categories->bindParam("i", "".($_GET['CategoryID']) ."", "-1"); //CatName

$SubCat2Name_rs_SubCategories2 = "-1";
if (isset($_GET['SubCat2ID'])) {
$SubCat2Name_rs_SubCategories2 = $_GET['SubCat2ID'];
$query_rs_SubCategories2 = sprintf("SELECT * FROM subcategories2 WHERE SubCat2ID = %s", GetSQLValueString($SubCat2Name_rs_SubCategories2, "int"));
$rs_SubCategories2 = $Amiganien_DB_i->query($query_rs_SubCategories2) or die($mysqli->error);
$row_rs_SubCategories2 = $rs_SubCategories2->fetch_assoc();
$rs_SubCategories->TotalRows2 = $rs_SubCategories2->num_rows;


Any pointer is much appreciated.


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