Posted By

tylerhall on 11/30/-1


Tagged

database scott quote


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

luman
collin
bitcrumb
dantreacy


Scott's DB quote function


 / Published in: PHP
 

  1. function dbquote($val) {
  2. $val = stripslashes($val);
  3. }
  4. if (!is_numeric($val)) {
  5. $val = " . mysql_real_escape_string($val) . ";
  6. }
  7. return $val;
  8. }

Report this snippet  

You need to login to post a comment.