Hi does anyone know how I can right an EREG statement to check that the first 4 characters are TN12 and will then be followed by 3 other characters and or intergers?
regards Andy
for mysql -
WHERE postcode REGEXP 'TN12[[:alnum:]]{3}'
I want it to check an input from a form $postcode in php. will that work as an ereg statement?
No - php regexp codes are different - and you posted in the wrong forum.
Heres a tutorial - http://www.phpbuilder.com/columns/dario19990616.php3
well how come the ered statement worked then?
and secondly, would this be the title of this forum?
Database
Conversation regarding PHP and SQL
thanks anyhow Andy