We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

tylerhall on 12/31/69


Tagged

database scott quote


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

luman
collin
bitcrumb


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.