Re: query wont insert?
Turn magic quotes off [they wont exist in php 6], and prior to inserting strings into the database, run them through mysql_real_escape_string(). Don't bother with htmlentities, adding or stripping slashes before inserting html into a database. Worry about them when you display the html.
|