Search found 3 matches
- Tue Feb 21, 2006 10:20 pm
- Forum: PHP - Security
- Topic: Form Input => Question Inside...
- Replies: 6
- Views: 2930
stripslashes
Actually, if you have magic_quotes_gpc enabled in your php.ini, you may want to call stripslashes() in addition to htmlentities(). If not, then just htmlentities().
- Tue Feb 21, 2006 10:14 pm
- Forum: Databases
- Topic: Database abstraction layer - OOP style w. pagination support
- Replies: 14
- Views: 1716
another alternative
I recently took the db abstraction code out of my WebCalendar project and created a new project on SourceForge: http://www.k5n.us/dbi4php.php I doubt many people will find it as useful for ADOdb. My dbi4php implementation comes in under 700 lines of code :-) The code started in 1999 (when I started ...
- Tue Feb 21, 2006 10:03 pm
- Forum: Databases
- Topic: Updating a table with a single quote character
- Replies: 6
- Views: 509
magic quotes
You can also use the PHP magic_quotes_gpc setting to do this escaping for you automatically (no need to call addslashes() or similar function.) It's typically simpler to do than always calling addslashes(), but then you must require any system where your code is installed to have this PHP setting en...