PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// 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"]?>">
I am however having trouble similarly populating a textarea as it does not seem to have a value parameter.
yea, whatever is between <textarea> and </textarea> will be displayed in the textarea, and the information in it will be passed with the form.. but make sure to specify a name="something"
Also make sure to put the </textarea> end tag in the same line as the "whatever in between the tags", else you might get a space character added to your value when you pass it or write it into the database. I've had weird encounters in the past when I put the end tag on a seperate line.