I have an SQL table that has a colum named ref that has values
dav-1
dav-2
dav-3
All the way up to 12. It's not always a fixed number of entries for different names, so I look up the entries like this--
SELECT * FROM reviews_db WHERE ref like "$item-%" ORDER BY ref ASC;
but then i wind up with the results in the wrong order, as such:
dav-1
dav-10
dav-11
dav-12
dav-2
dav-3
etc. Any ideas how i can get this in the right order?