HelloI've made a litte Address applicaton with php and MySQL and I wish pass the start letter trough a url variable to sort the addresses.I use this query:SELECT nom, prenom, code_pays_rel, pays, code_paysFROM contacts, paysWHERE contacts.code_pays_rel=pays.code_pays AND nom >= 'G' AND nom < 'G'ORDER BY pays, nom asc
How could I select only the adress starting "G" and not the other?Is that possible to have a query like nom >='G' AND nom < 'G+1'
To have:nom >='G' AND nom < 'H'
As I said, I pass the letter via a URL parameter ('G' in my exemple) and I don't know wish one (client side).How do you made this?A lot of thx for your help and times,Dominique