I have the following code:
This displays each record in alphabetic order. But Now I need all records that start with a number to be displayed. How can I do that?PHP Code:mysql_query("SELECT * FROM example WHERE LEFT(name, 1) = 'a'");
| SitePoint Sponsor |
I have the following code:
This displays each record in alphabetic order. But Now I need all records that start with a number to be displayed. How can I do that?PHP Code:mysql_query("SELECT * FROM example WHERE LEFT(name, 1) = 'a'");


should work.Code:mysql_query("SELECT * FROM example WHERE LEFT(name, 1) <= '9'")
Regards,
Michaël
Michaël Niessen
http://assemblysys.com
(Countries/states/cities with latitude & longitude,
weathercodes & topical databases)
Bookmarks