fetch_all(MYSQLI_ASSOC);
// actions
// delete entry
if (isset($_GET["del"])) {
$sql = "DELETE FROM users WHERE id = ?";
$stmt = mysqli_prepare($link, $sql);
mysqli_stmt_bind_param($stmt, "s", $param_id);
$param_id = $_GET["del"];
if (!mysqli_stmt_execute($stmt) || mysqli_stmt_affected_rows($stmt) != 1) {
echo "SQL error.";
} else header("location: ".$_SERVER['SCRIPT_NAME']);
}
?>
ARFNET CSTIMS
ARFNET Client Service Ticket and Invoice Management System
panel
Users
id | user | password | email | verifycode | type | regdate | status | action |
".$user['id']." | "
."".$user['username']." | "
."".$user['password']." | "
."".$user['email']." | "
."".$user['verifycode']." | "
."".$user['type']." | "
."".$user['regdate']." | "
."".$user['status']." | "
."del edit | \n";
}
?>