prepare($query); if($sth) { $res = $sth->execute(); $result = $sth->fetchrow_hash(); $back = $result["apps_on"]; $back_t = $result["apps_type"]; } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } $query = "DELETE FROM apps WHERE (ID = $ID)"; $result = $adb->dbh_do($query); logevent($back, "apps", 4, "apps", "$IRMName removed application $ID"); if ($back_t == 1) { header("Location: $USERPREFIX/servers/info.php?ID=$back"); } else { header("Location: $USERPREFIX/servers/info.php?ID=$back"); } ?>