Hi,
Could someone tell me what is wrong with the syntax of this query. I'm trying to check all of the member records in a table, and count how many have @aol.com addresses.
I keep getting a syntax error.
error=You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(*) FROM mem_data where mid(Email, instr(Email,'@
$query = "SELECT count ( * )
FROM member_data
where mid(Email, instr(Email,'@') +1) = 'aol.com'
";
Any help would be greatly appreciated..
doug