View Single Post
Old 09-29-2007, 03:02 AM   #13 (permalink)
CMellor
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default

I think I'm gonna use that function you have in method 1 on my project. Currently I use:

PHP Code:
<?php
function escape($str) {
    return 
htmlspecialchars(mysql_real_escape_string($str));
}
?>
Your's seems safer...
__________________
Not quite a n00b...
CMellor is offline  
Reply With Quote