LinusIT - 8:01 am on Oct 6, 2012 (gmt 0)
I'm trying to check for duplicate values within my database but am only interested in duplicates that begin with a number. I'm using REGEXP but must be doing something wrong.
$sql = "SELECT ref FROM log WHERE ref='$ref' REGEXP '^[0-9]'";
There is more code to go after this but I think the problem lies within the sql.