| $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. |