Thread: Sql and php
View Single Post
Old 11-24-2009, 08:53 AM   #8 (permalink)
billybolsa
Recruit
 
billybolsa's Avatar
 
Join Date: Oct 2009
Posts: 9
billybolsa is on a distinguished road
$string =mysql_real_escape_string($stringToStrip);

but you can only use this if you establish a mysql connection first. Otherwise it will produce errors. I think its probably a better idea to create your own validating functions because then you can use them any where you want.
billybolsa is offline   Reply With Quote