Populating a <TEXTAREA> tag using MySQL/PHP
Posted: Tue Jul 16, 2002 7:33 pm
I have no difficulty in populating select, and any input tags by setting the value parameter to equal some php code:
eg
I am however having trouble similarly populating a textarea as it does not seem to have a value parameter.
Any assistance will be greatly appreciated.
- Andrew
eg
Code: Select all
// database query returned as assoc array
$query = "SELECT * FROM products WHERE status = '".$status."' AND seller = '".$sv_email."'";
$result = mysql_query($query);
$products = mysql_fetch_assoc($result);
// example of populating a text input with retrieved data
<INPUT type="text" name="brand" value="<?=$productї"brand"]?>">Any assistance will be greatly appreciated.
- Andrew