you need to change the ordering of the statement I believe..
$stmt = "SELECT * FROM teamnew WHERE lastname REGEXP '^$1|^$2|^$3' ORD +ER BY lastname";
cheers,
J
In reply to Re: (OT) Setting up a MySQL REGEXP in Perl
by edoc
in thread (OT) Setting up a MySQL REGEXP in Perl
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |