Hi,
I have a simple table:
id surname
1 gastrow
2 gilmer
3 green
4 greenwood
5 gunther
(sorted in surname)
When the user types in "gr" and clicks "go" the select statement should return "green" and "greenwood" I'm using:
"SELECT * FROM table WHERE surname >= '$surname'"
but this also returns "gunther" which is incorrect.
Anybody with advice please?
Thanks