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

need help with recordset sql logic

Thread began 5/17/2016 4:38 pm by Christopher West | Last modified 5/18/2016 1:04 pm by Christopher West | 168 views | 1 replies

Christopher WestCommunity Expert

need help with recordset sql logic

Hi Ray, I'm still hoping to get a premiere support ticket with you sometime. in the mean time, im trying to see if I can resolve myself to a working version (even though maybe not the most optimized approach).

currently my recordset is giving this error:

SELECT products.*, catalog.*, categories.* FROM catalog LEFT JOIN products ON catalog.CatalogProductID = products.ProductID LEFT JOIN categories ON catalog.CatalogCategoryID = categories.CategoryID WHERE (categories.CategoryLink = ?

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 7

The URL as an example is: http://localhost/armadillo/category.php?Department=Lighting&Category=Art-Work

And my SQL code is :

$rsProducts = new WA_MySQLi_RS("rsProducts",$ecartdb,0);

SELECT products.*, catalog.*, categories.* 
FROM catalog 
LEFT JOIN products 
ON catalog.CatalogProductID = products.ProductID
LEFT JOIN categories
ON catalog.CatalogCategoryID = categories.CategoryID
WHERE (categories.CategoryLink = ?");
$rsProducts->bindParam("s", "".(isset($_GET['Category'])?$_GET['Category']:"")  ."", "-1"); //WAQB_Param1

Are you able to see from here if there is an obvious logical error on my part?

I just want to attach the 2 files in question, in case you can see an obvious mistake. Aldo is there a way to improve the code as it just seems like a bad approach.

Attached Files

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