close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

after adding universal email facing problem with rs.

Thread began 9/06/2016 4:30 am by Kumel | Last modified 9/07/2016 1:55 pm by Ray Borduin | 212 views | 1 replies |

Kumel

after adding universal email facing problem with rs.

i have universal email which send email on following trigger : Recordset: smsBillingDetails is not empty..
file attached.

booking.php. when i open bookings.php it opens perfectly fine.
when url turns this: bookings.php?BID=25&passenger=1&status=4&invoice=&billid=11

i get error. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
also for this url i get error : bookings.php?BID=25&passenger=1&status=4&invoice=1&billid=11

all same errors.

WHEN I REMOVE UNIVERSAL EMAIL all works fine with any url.

there are many rs which uses $_GET BID so i used:

<?php if(isset($_GET['invoice']) == 1 || isset($_GET['passenger']) == 1 ){ ?>

rs here

<?php } ?>

& <?php if(isset($_GET['invoice']) == "1") { ?>
universal email
<?php } ?>

Sign in to reply to this post

Ray BorduinWebAssist

The issue is with your recordsets on lines 48-76. You are using IN statements for your queries and my best guess is that they aren't returning values. I'm not sure why you are using an IN statement since it is only sending a single value to the query.

My guess is that one of the earlier recordsets aren't returning a value which is resulting in an empty IN statement and that is the cause of the error. I'm sure it has nothing to do with the email unless you have another recordset in the email body file that I haven't seen.

If you give me FTP access and a full URL to reproduce I could debug it more. (I'd write the SQL statements to the page before each mysql_query() line like:

$query_smsBookingDetails = "SELECT BookingID, PickUpID, DriverID FROM Bookings WHERE BookingID IN (".$_GET['BID'].")";
echo($query_smsBookingDetails);
$smsBookingDetails = mysql_query($query_smsBookingDetails, $con1) or die(mysql_error());

and so on for the others.

That will write the SQL statements before the error and allow you to diagnose at least which is causing the problem.

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

Content

rating

Layout

rating

Ease of use

rating

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