MySQL search first letter

Associate
Joined
8 Aug 2008
Posts
302
Is it possible to get MySQL and PHP to basically say "SELECT * FROM table WHERE firstletter of title='$letter'" ?
 
So that'll pull any number so if it's "3.1 update" it'll work?

Is there any way of doing it so that it pulls anything that's not a letter of the alphabet instead? Just in case we gets brackets etc?
 
So that'll pull any number so if it's "3.1 update" it'll work?

Is there any way of doing it so that it pulls anything that's not a letter of the alphabet instead? Just in case we gets brackets etc?
Don't know about searching for non-alphanumberic characters.

Using 1% would return anything starting with 1...

1111
1246
100000
1
12
 
Back
Top Bottom