My edit form shows current values in database and we can erase them and change value as we want. the problem is it doesnt show excisting value for textarea in database. Is there a anyspecial way to take the values for textarea???
this my code for the form part only
[php]
<form ACTION="edit_chemical_save.php" name="editchemicalForm" id="editchemicalForm" METHOD="POST" align="center" >
<?php
session_start();
include("config.php");
$id = $_GET['id'];
$result = mysql_query("SELECT * FROM chemical WHERE id= $id")
or die(mysql_error());
$row = mysql_fetch_array($result);
if($row)
{
$generalname = $row['generalname'];
$Scientificname = $row['Scientificname'];
$quantity = $row['quantity'];
$textarea = $row['textarea'];
$date = $row['date'];
$reorder = $row['reorder'];
$type = $row['type'];
}
?>
Chemical name* | |
Chemical Code* | |
Notes |
</form>
[/php]