Location: PHPKode > scripts > PHP Online Invoice System > php-online-invoice-system/deleteadmin.php
<?
/*
 * Exemplar Web hosting
 * http://www.exemplar.biz
 *
 * Title: PHP Online Invoice System
 * Version: 2.0
 * Author: Exemplar
 * Date: 01-01-2006
 *                 
*/

include("header.php");

if ($id == 1) {
echo "<B>OOPS, You can not delete the admin? </B><br><br>

<a href=menu.php>Please return to the main menu</a>";
exit;
}

mysql_query("DELETE FROM admins WHERE id=$id",$db);

echo "Admin deleted<br><br>";
echo "<a href=admins.php>Return to Admin list</a><br><br>";

include "footer.php";
?>
Return current item: PHP Online Invoice System