Jump to content

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

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.