![]() |
Alphabetical Ordering from a database
I am trying to figure out how to alphabetize a client list that draws from my data base here is the code i am playing with if any one could help nudge me ;) in the right direction i would be forever grateful
PHP Code:
Travis |
Re: Alphabetical Ordering from a database
I am still trying to understand what you are trying to do? I guess you need to know that SQL as a language is case insensitive and so order by clause will always work.
|
Re: Alphabetical Ordering from a database
I am not really a php programmer but figured i would give this a try to eliminate some work from my co-workers.
basically what i was trying to do was the order the clients alphabetically by last name instead of by there database ID this was the old statement that i am trying to edit $query = "SELECT lastName, id, firstName, email FROM userAccounts WHERE assignedAgent = ".$_SESSION['agent']['agentID']; and you obviously can see the new statement that i created from reading a bunch of forum posts. Any help would be greatly appreciated thanks Travis |
| All times are GMT +5.5. The time now is 23:36. |