mothra
07-18-2005, 02:29 AM
edited.
I'd like to know if there is a more elegant way to do this without the IF block and all the repeating setting of variables. I've got some update queries that are pretty big already.
From the manual:
if (!get_magic_quotes_gpc()) {
$lastname = addslashes($_POST['lastname']);
} else {
$lastname = $_POST['lastname'];
}
I'd like to know if there is a more elegant way to do this without the IF block and all the repeating setting of variables. I've got some update queries that are pretty big already.
From the manual:
if (!get_magic_quotes_gpc()) {
$lastname = addslashes($_POST['lastname']);
} else {
$lastname = $_POST['lastname'];
}