-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
36 lines (26 loc) · 966 Bytes
/
test.php
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
<!DOCTYPE html>
<?php
/*spl_autoload_register(function ($class){
require 'classes/'.$class.'.php';
});
Session::sessionStart();*/
$order_id=58;
$connect = new mysqli('localhost','root','','onlineBook');
$query = $connect->prepare('select * from communication_betwen_employee_and_customer, orders where communication_betwen_employee_and_customer.order_id=? and communication_betwen_employee_and_customer.order_id = orders.order_id');
$query->bind_param('i',$order_id);
$query->execute();
$messages = $query->get_result();
foreach($messages as $message){
echo $message['message_content']."<br>";
}
?>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.bundle.min.js"></script>
</head>
<body>
</body>
</html>