little error during inscription

hi i got this in my mail when user try to sibscribe : database error query

Query:

SELECT `m`.`country` FROM `bx_map_cities` AS `m` WHERE `m`.`country` = 'CA' AND `m`.`city` = 'l'Assomption' AND `m`.`failed` = 0 LIMIT 1

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 'Assomption' AND `m`.`failed` = 0 LIMIT 1' at line 1

 

i added this just before the quey to resolve it :

$sCity = addslashes($sCity);

 

ty

popy

 

 

Quote · 19 Nov 2009

Ticket added: http://www.boonex.com/trac/dolphin/ticket/1494

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 19 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.