SirChick Posted August 26, 2007 Share Posted August 26, 2007 What is the best way to do something along the lines of this: Say theres 3 mails in the table.... named "messagetext". Now im trying to work out the best to obtain those 3 mails and put them into 3 unique variables. Which can then be echo'd... would a while loop be best and assigning them ? Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 26, 2007 Share Posted August 26, 2007 Since you're (presumably) already using a while loop to abstract the messages from the database, assign them as array variables in the loop ...$messagetext[0], ...., $messagetext[2] 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.