| Server IP : 104.21.37.246 / Your IP : 104.23.243.33 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/cp648411/www/simded.com/mybackend/orders/ |
Upload File : |
<?php require_once("../include/class.php");?>
<?php include("table_name.php");?>
<?php include('../include/sql_injection_get.php');?>
<?php
if(!is_numeric($_GET["id"]))
{
?>
<meta http-equiv="refresh" content="0;URL=../index.php">
<?php
}
?>
<?php
$get_id = $_GET['id'];
$list1 = array('table'=>'order_detail','where'=>'id_order = "'.$_GET['id'].'"','order'=> "ORDER BY id ASC");
$view1 = $view_db->view($list1);
$result1 = $view_db->q_re($view1);
while($row1 = $view_db->q_ro($result1))
{
$list = array(
'table'=>'phonenumber',
'id'=>$row1["id_pho"],
'status_number'=>1,//ยกเลิกเบอกกลับ มา ว่าง(1)
'up_date'=>date("Y-m-d H:i:s")
);
$add = $actiondata_db->edit_db($list);
$list = array(
'table'=>'order_detail',
'id'=>$row1['id']
);
$delete = $actiondata_db->delete($list);
}
$list = array(
'table'=>$name_table,
'id'=>$get_id
);
$delete = $actiondata_db->delete($list);
$_SESSION['er'] = 'de_true';
if( $delete['suc'] <> 1)
{
$_SESSION['er'] = 'false';
}
?>
<meta http-equiv="refresh" content="0;URL=list.php">
<?php
exit;
?>