Allow apostrophe in email address

Tags: 

HI,

We have a PHP script which checks if Contact exists based on email address. One of the email address has an apostrophe, but the Select statement fails because of the apostrophe. How can we fix this. We need the apostrophe. as its valid email address

Thanks

Uma

Comments

Use this static method from Connect PHP to escape the email address.
This is a good idea for any string values in a WHERE clause:

\RightNow\Connect\v1_2\ROQL::escapeString()

Zircon - This is a contributing Drupal Theme
Design by WeebPal.