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 ? Link to comment https://forums.phpfreaks.com/topic/66757-solved-assigning-rows-to-unique-variables/ 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] Link to comment https://forums.phpfreaks.com/topic/66757-solved-assigning-rows-to-unique-variables/#findComment-334530 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.