in reply to Regex or Index
LastName LIKE '[A-K]*' for one case, and LastName LIKE '[L-Z]*' for the other case. [download]
Thanks for reply. I tried using your advice, but no luck. Im sort of a MySQL newbie and confused on how I would put that statement with mine.
$sql = "SELECT * FROM mailtodo where date = '$INPUT{'date'}' AND lastn +ame LIKE '[A-K]*'"; [download]
Anthony