Go Back   BioRUST Forums > Graphics Software & Support > HTML / PHP / ASP / JS

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-24-2007   #1 (permalink)
Steven
 
Join Date: Jun 2005
Location: McAlester, OKlahaoma - United States
Posts: 21

PHP Arrays, Is it possible to order information in an array alphabeticly?

I've been into web-coding for a while now, and I've often wondered if it were possible to alphabetize information I had in an array? If anyone could help I'd appreciate it greatly. And if there is something I can help you with maybe we can swap some knowledge?!
basicwe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-24-2007   #2 (permalink)
Registered User
 
Join Date: Aug 2004
Posts: 106

If you are just working in straight php check this out:
Programming PHP: Chapter 5: Arrays

If you are pulling data from a mysql database for example, you do it in the query. mysql_query("SELECT * FROM table ORDER BY (alpha field) ASC"); If the table field contains alphanumeric text then it will be spit out alphabetically.
Jolt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-25-2007   #3 (permalink)
Steven
 
Join Date: Jun 2005
Location: McAlester, OKlahaoma - United States
Posts: 21

Thank you.

Thanks, that is exactly what I needed.
basicwe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 01:44 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT