Hi,
I am looking for a good way to format text string before inserting them into a database. I wish to remove DB harmful charachers such as '.
this is what I currently have:
function db_s($in_string)
{
$str_out = str_replace("\'", "`", $in_string);
return $str_out;
}
db_s($textstring)
The problem is that it does'nt seem to work on large blocks of HTML....
any ideas or better solutions would be great.