News for hackers. Stuff that matters.
Re:PHP to deprecate MySQL extension by icode on Sunday July 17, 2011 @05:59AM (#2772989)
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.

There are no comments on this comment yet.