newsletters SQL Syntax error

Started by muslimways, February 17, 2006, 05:24:52 AM

Previous topic - Next topic

muslimways

Quote from: Database 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 '@yahoo.com', '[email protected]', '[email protected]', 'gestion2006dz@ya' at line 3
File: /home/.amethyst/muslimways/muslimways.com/forum/Sources/ManageNews.php
Line: 466

I get that error everytime I try to email, same line aswel, what could be wrong? please help

Compuart

Try replacing:
Code (ManageNews.php) Select
WHERE emailAddress IN ('" . implode("', '", $send_list) . "')", __FILE__, __LINE__);

by:
Code (ManageNews.php) Select
WHERE emailAddress IN ('" . addslashes(implode("', '", $send_list)) . "')", __FILE__, __LINE__);
Hendrik Jan Visser
Former Lead Developer & Co-founder www.simplemachines.org
Personal Signature:
Realitynet.nl -> ExpeditieRobinson.net / PekingExpress.org / WieIsDeMol.Com


Advertisement: