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

MySqli search issue

Thread began 5/06/2017 8:44 pm by EmmaMorris | Last modified 9/01/2017 3:45 pm by EmmaMorris | 2048 views | 7 replies


I have two questions here.. How do I modify this code:

$rsResults = new WA_MySQLi_RS("rsResults",$conn_mdb1,0);
$rsResults->setQuery("SELECT * FROM maintbl WHERE mainID LIKE ? OR firstName LIKE ? OR lastName LIKE ? OR licenseNumber LIKE ? ORDER BY mainID ASC");
$rsResults->bindParam("i", "".(isset($_GET['mainID'])?$_GET['mainID']:"") ."", "-1"); //colname
$rsResults->bindParam("s", "".(isset($_GET['firstName'])?$_GET['firstName']:"") ."", "-1"); //paramNam
$rsResults->bindParam("s", "".(isset($_GET['lastName'])?$_GET['lastName']:"") ."", "-1"); //paramNam
$rsResults->bindParam("s", "".(isset($_GET['licenseNumber'])?$_GET['licenseNumber']:"") ."", "-1"); //paramLic

so it will find partial matches.. Like say the name was Reddy, searching for Red does not find it.

Secondly - see attached page.
I also have modified this search to use only one search field. I have it working but I wanted to try it without using WA to do it. Just to learn.
All I am trying to figure out is how to format the results from the array. I have it echoing the results to the screen fine but cant figure out how to get it into a formatted table. code on the attached page prints a table but it is one long row not rows/columns.
Would appreciate any input.


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