Re: today i found the best function I've ever seen
| From: | Shawn McKenzie | Date: | Sat, 21 Mar 2009 00:06:24 +0000 |
| Subject: | Re: today i found the best function I've ever seen | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290452@lists.php.net to get a copy of this message | ||
Nathan Rixham wrote:
> if( !function_exists('clean_sql_term') )
> {
> function clean_sql_term($term) {
> return $term;
> }
> }
>
> beautiful
How is best to update all of my code to use this new function? Should I
just search and replace 'mysql_real_esacpe_string(' with
'clean_sql_term(' or does this replace all of my validations on inputs?
And I see the if( !function_exists('clean_sql_term'), so obviously in
some PHP versions this function exists. What versions?
--
Thanks!
-Shawn
http://www.spidean.com