-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete_change_status.php
More file actions
30 lines (22 loc) · 881 Bytes
/
delete_change_status.php
File metadata and controls
30 lines (22 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
include('db.php');
//if(isset($_POST['submit'])){
function arraytoarray($item_name){
$a = array();
foreach($item_name as $cur)
{
array_push($a,$cur);
}
return $a;
}
/*********************************************************************************************/
/********************************************************************************************
DELETE ANY TABLE
/*********************************************************************************************/
/*********************************************************************************************/
$tale_name = $_POST['table_name'];
$id = $_POST['data'];
echo $result = "UPDATE `$tale_name` SET `status` = 'delete' WHERE `id` = '$id'";
$new = $conn->query($result) or die (mysqli_error());
/*********************************************************************************************/
?>