Receiving database errors, when some registers with ' in the email address. Would anyone know how to fix this?
PHP Code:
Database error in vBulletin 4.2.2:
Invalid SQL:
SELECT * FROM vbuserregcode WHERE userregemail = 'wendy_o'reilly@inwebmail.com';
MySQL 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 'reilly@inwebmail.com'' at line 1
Error Number : 1064
Request Date : Monday, September 15th 2014 @ 04:56:37 PM
Error Date : Monday, September 15th 2014 @ 04:56:38 PM
Script : http://nirc.co.uk/joiningthenirc.php
Referrer : http://nirc.co.uk/joiningthenirc.php
IP Address : 69.12.84.199
Username : Unregistered
Classname : vB_Database_MySQLi
MySQL Version :