desjardins2010 Posted December 7, 2010 Share Posted December 7, 2010 ok so this code here is working find in regards to fetching the users name and ID number however it's just putting them in any order I want the first user to be user 1 and then 2 then so forth? would a simple for loop do this if so before or after my while loop? or would I even need a while loop? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 7, 2010 Share Posted December 7, 2010 Uh, what code? Quote Link to comment Share on other sites More sharing options...
litebearer Posted December 7, 2010 Share Posted December 7, 2010 Pika - need to take a class in ESP and mind reading Quote Link to comment Share on other sites More sharing options...
shlumph Posted December 7, 2010 Share Posted December 7, 2010 If you're using a DB, you'll want to do the ordering at the DB level. If you're using MySQL you can append "ORDER BY ID ASC" to the end of your query. But as mentioned, posting the relevant code would help, you could be getting data from a CSV file for all we know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.