prepare($query); if($sth) { $res = $sth->execute(); $result = $sth->fetchrow_hash(); $ID = $result["ID"]; $templname = $result["templname"]; $name = $result["name"]; $type = $result["type"]; $os = $result["os"]; $osver = $result["osver"]; $processor = $result["processor"]; $processor_speed = $result["processor_speed"]; $location = $result["location"]; $serial = $result["serial"]; $otherserial = $result["otherserial"]; $ramtype = $result["ramtype"]; $ram = $result["ram"]; $network = $result["network"]; $ip = $result["ip"]; $mac = $result["mac"]; $hdspace = $result["hdspace"]; $comments = $result["comments"]; $ups = $result["ups"]; $new_date = date("Y-m-d H:i:s"); $iface = $result["iface"]; } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } PRINT "Use this form to edit template \"$templname\". Back to Templates
"; PRINT ""; include("../include/server.php"); PRINT "
"; $new_date = date("Y-m-d H:i:s"); PRINT "Editing Template "; PRINT "
"; PRINT "
"; templcompsoftShow($ID); PRINT "
"; ?>