$id = $_GET["del"];
$del = $query = "delete from $table where (id='$id')";
mysql_query($query) or die(mysql_error());
if ( isset($_GET['act']) ) {
$id_user = $_GET['id'];
$sql_delete = "DELETE FROM orders WHERE id_user= $del";
mysql_query($sql_delete);
}