Here's a regex to validate against the schema for common MySQL
identifiers:
<?php
$string = "$table_name";
if (preg_match("/[^\\d\\sa-zA-Z$_]/", $string))
echo "Failed validation";
?>
Here's a regex to validate against the schema for common MySQL
identifiers:
<?php
$string = "$table_name";
if (preg_match("/[^\\d\\sa-zA-Z$_]/", $string))
echo "Failed validation";
?>