Hey, the {$e('$value')} idea is interesting.
old way:
$sql_email=mysql_real_escape_string($email);
$sql="UPDATE t WHERE id=123 SET email='$sql_email'";
your idea: $sql="UPDATE t WHERE id=123 SET email='{$e($email)}'";
Im not yet sure, which one I like more.
Something like ...
Problem is, this only works if you don't plan on modifying any of the values before you stick them in the database.You could also do something like ...
But I think that looks pretty ugly.