Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 219 Bytes
<?php
require_once('_config.php');
require_once('_functions.php');
$userid = $_GET['id'] + 0;
runQuery("DELETE FROM users WHERE id = $userid LIMIT 1");
runQuery("UPDATE users SET id = id - 1 WHERE id > $userid");