-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathac.php
More file actions
43 lines (27 loc) · 666 Bytes
/
Copy pathac.php
File metadata and controls
43 lines (27 loc) · 666 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
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
include_once 'config/config.php';
var_dump($_POST);
$from_id=$_SESSION['employeeid'];
$get_id=$_GET['id'];
$msg='leave accept';
$q="INSERT INTO chat (`from_id`, `to_id`, `message`) values('".$from_id."','".$get_id."','".$msg."')";
echo $q;
// if(mysqli_affected_rows($db_obj) > 0)
if(mysqli_affected_rows($connection_obj) > 0)
{
$shift_data = mysqli_fetch_assoc($q);
}
else
{
echo "insert error".mysqli_error($connection_obj);
}
$status = mysqli_query($connection_obj,$q);
if($status)
{
header("location:./Accept_Reject.php");
}
else
{
echo "insert error";
}
?>