Jump to content

[SOLVED] turn results of while liio into variable


tgavin

Recommended Posts

I want to display the results of a loop in a textarea. It's working, except that the textarea is printing in the wrong area of my page. Is there a way that I can just get the contents into a variable, or array, or something that I can insert elsewhere in the page?

 

echo '<textarea name="printsubs" id="printsubs" cols="50" rows="20">';
while($row = mysql_fetch_assoc($sql)) {
	echo $row[''.SUB_EMAIL.'']."\n";
}
echo '</textarea>';

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.