Not trying to bump, there is no edit button on the previous reply....I actually am working on this still, however my new focus is how to implement the cleaning properly...I cant seem to pass the 'oldNum' column data to the cleanString function appropriately here is what i have now
function cleanString($string) {
$new_string = preg_replace("/[^a-zA-Z0-9\s]/", "", $string);
return $new_string;
}
if(isset($_POST['submit'])) {
$db = @mysql_select_db($db, $connection) or die(mysql_error());
$sql = "UPDATE theTable SET newNum = " . cleanString(oldNum);
$result = @mysql_query($sql, $connection) or die(mysql_error());
}