if you get sick of typing addslashes all the time.. make a function...
function as($key) {
return addslashes($key);
}
then use as($data)
.. I do this for stripslashes and htmlspecialchars.. so comminly used but there so long to type out..
I use
function slash($key) {
$key=stripslashes($key);
return stripslashes($key);
}
function html($key) {
$key=htmlspecialchars($key);
return slash($key); //for output
}
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
|