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

Basic Search Form

Thread began 7/21/2014 12:43 am by Jason | Last modified 8/28/2014 10:46 am by Jason | 3737 views | 101 replies


I'm still getting the blank result, but with the error in sql syntax message again in regards to the nested recordset

<?php require_once('Connections/local_i.php'); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
$ServingQuery = new WA_MySQLi_RS("ServingQuery",$local_i,0);
$ServingQuery->setQuery("SELECT pcms2_users.UserID, pcms2_users.UserFirstName, pcms2_users.UserLastName FROM pcms2_users WHERE (pcms2_users.UserFirstName = ? OR ? = -1) AND (pcms2_users.UserLastName = ? OR ? = -1)");
$ServingQuery->bindParam("s", "".(isset($_GET['UserFirstName'])?$_GET['UserFirstName']:"") ."", "-1"); //paramFirstName1
$ServingQuery->bindParam("s", "".(isset($_GET['UserFirstName'])?$_GET['UserFirstName']:"") ."", "-1"); //paramFirstName2
$ServingQuery->bindParam("s", "".(isset($_GET['UserLastName'])?$_GET['UserLastName']:"") ."", "-1"); //paramLastName1
$ServingQuery->bindParam("s", "".(isset($_GET['UserLastName'])?$_GET['UserLastName']:"") ."", "-1"); //paramLastName2
<!doctype html>
<meta charset="utf-8">
<title>Untitled Document</title>

<form method="get">
<input type="search" name="UserFirstName" id="UserFirstName">
<input type="search" name="UserLastName" id="UserLastName">
<input type="submit" name="search" value="search">
<?php if((isset($_GET['UserFirstName']) && $_GET['UserFirstName'] != "") OR (isset($_GET['UserLastName']) && $_GET['UserLastName'] != "")) { ?>
while(!$ServingQuery->atEnd()) {
$_GET['UserID'] = $ServingQuery->getColumnVal("UserID");
<table width="50%" border="1">
<td align="center">First Name</td>
<td align="center">Last Name</td>
<td align="center">Serving Areas</td>
<td><?php echo($ServingQuery->getColumnVal("UserFirstName")); ?></td>
<td><?php echo($ServingQuery->getColumnVal("UserLastName")); ?></td>
$nestedsandor = new WA_MySQLi_RS("nestedsandor",$local_i,1);
$nestedsandor->setQuery("SELECT serving_team.*, cleaning_team_shifts.*, clerical_team_shifts.*,, it_team_shifts.it_team_id, it_team_shifts.it_volunteer, youth_program_shifts.* FROM serving_team LEFT OUTER JOIN cleaning_team_shifts ON = cleaning_team_shifts.cleaning_team_id LEFT OUTER JOIN clerical_team_shifts ON = LEFT OUTER JOIN it_team_shifts ON = LEFT OUTER JOIN youth_program_shifts ON = WHERE cleaning_team_shifts.ct_volunteer column = ?");
$nestedsandor->bindParam("s", "".(isset($_GET['UserID'])?$_GET['UserID']:"") ."", "-1"); //WAQB_Param1
<td><?php echo($nestedsandor->getColumnVal("team")); ?></td>
$ServingQuery->moveFirst(); //return RS to first record
<?php } ?>
</html> the "error in sql syntax" message again pertaining to the nested recordset.

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