View Single Post
Old 03-14-2005, 07:45 AM   #10 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 660
DJMaze is on a distinguished road
Quote:
Originally Posted by sde
Hey maze, that is a great point. I think it's set to on by default, but it's something I never really considered as I like to keep code portable as possible.
There are a lot more issues to consider when keeping your code portable.
The most common issue people forget is when "magic_quotes_sybase" set to 'On'
It makes stripslashes() and addslashes() completely useless for MySQL queries.
addcslashes() or mysql_escape_string() are much better.

Also there are a lot more issues like register_globals but this all has nothing todo with this thread unless saul wants to use his <form> data into a database.
DJMaze is offline   Reply With Quote