Jump to content

Retreiving data from database situation - Variable


npsari

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.