= 2) { // check for submit if ($_SERVER['REQUEST_METHOD']=="POST" ) { $assetclass_id = $_POST['assetclass_id']; $assetclass_name = $_POST['assetclass_name']; $assetclassgroup_id = $_POST['assetclassgroup_id']; mysql_query("UPDATE assetclass SET assetclass_name='$assetclass_name', assetclassgroup_id='$assetclassgroup_id' WHERE assetclass_id='$assetclass_id'") or die(mysql_error()); header_location("assetclassview.php?assetclass_id=" . $assetclass_id); } $assetclass_id = $_GET['assetclass_id']; // get current information $result = mysql_query("SELECT assetclass_name, assetclassgroup_id FROM assetclass WHERE assetclass_id='$assetclass_id'"); while ($row = mysql_fetch_object($result)) { $assetclass_name = $row->assetclass_name; $assetclassgroup_id = $row->assetclassgroup_id; } ?>
Edit assetclass:
Assetclass name:
Assetclass Group: