npsari Posted June 22, 2007 Share Posted June 22, 2007 Hi I am retreiving data from the database (put inside a text area) print"<textarea name=\"body\" id=\"body\" rows=\"5\" cols=\"10\"> $con=mysql_connect("localhost", "name", "password"); mysql_select_db("database",$con); $qt = "SELECT * FROM friends ORDER BY Date DESC, Time DESC LIMIT 20;"; $rest = @mysql_query($qt,$con); while($rt = @mysql_fetch_array($rest)){ many results } </textarea>"; The results are many and different but they are all inside the text area Is there a way i can create a variable which equals all these results Like $Results= Everything inside the text area Link to comment https://forums.phpfreaks.com/topic/56676-retreiving-data-from-database-situation-variable/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.