[SOLVED]Probably a simple question
Moderator: General Moderators
-
Wldrumstcs
- Forum Commoner
- Posts: 98
- Joined: Wed Nov 26, 2003 8:41 pm
[SOLVED]Probably a simple question
Ok, I have a bunch of names (first and last) in a db. I also have a page where I output the list of names along with other info about that person. How would I show the output in alphabetical order according to the LAST name. Basically, how would I split up the last names from the first names and then sort alphabetically? Thanks and sorry for my lame questions 
Last edited by Wldrumstcs on Sun Dec 05, 2004 10:23 pm, edited 1 time in total.
Code: Select all
$query = "select * from names order by lastname asc";-
Wldrumstcs
- Forum Commoner
- Posts: 98
- Joined: Wed Nov 26, 2003 8:41 pm
Download the chm version all the way to the right. It's a very nice manual with search features.
http://www.php.net/download-docs.php
http://www.php.net/download-docs.php
-
Wldrumstcs
- Forum Commoner
- Posts: 98
- Joined: Wed Nov 26, 2003 8:41 pm