Use the PHP addslashes function to fix SQL INSERT problems
More PHP MySQL FAQ: Can you share an example of how to use the PHP addslashes function when creating a SQL INSERT statement? When you’re inserting records into a database table with plain PHP (as opposed to using a PHP framework), some of the fields you’re inserting may have characters...
Continue reading