Hello,
You can use
yourField LIKE 'x%' in your WHERE clause, where "x" replaces the character that the user has clicked on. e.g. to get all records whose "state" field begins with "s", use
state LIKE 's%' .
Now you can pass an alphabetic letter via HTTP request (GET, POST, etc) when a user clicks on it and insert this letter into your SQL (i.e. "x" in the above example) to retrieve the corresponding data.
For more info on
LIKE, I suggest that you consult with MySQL documentation:
http://dev.mysql.com/doc/mysql/en/st...functions.html
Hope this helps. =)