php Programming Glossary: dbpreparedstatement
In PHP when submitting strings to the database should I take care of illegal characters using htmlspecialchars() or use a regular expression? http://stackoverflow.com/questions/2993027/in-php-when-submitting-strings-to-the-database-should-i-take-care-of-illegal-cha can also use prepared statements to take care of the data dbPreparedStatement db prepare 'INSERT INTO table htmlcontent VALUES ' dbPreparedStatement.. db prepare 'INSERT INTO table htmlcontent VALUES ' dbPreparedStatement execute array yourHtmlData Or a little more self explaining.. array yourHtmlData Or a little more self explaining dbPreparedStatement db prepare 'INSERT INTO table htmlcontent VALUES htmlcontent..
|