-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreview_admin.php
65 lines (48 loc) · 1.64 KB
/
review_admin.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
error_reporting(0);
include 'database_connect.php';
$id_request=$_GET['id_request'];
?>
</html><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> Happy Paws Clinic </title>
<link rel="stylesheet" href="css//review-design.css">
</head>
<body class="body_appointements" style="background-image:url(image//design6.png);">
<?php
$sql_select_users = "select review.comment, review.rate ,owner.email from review
INNER JOIN owner ON review.user_id = owner.id where request_id=$id_request";
$Result_users = mysqli_query($conn, $sql_select_users);
if(mysqli_num_rows($Result_users)>0){
while ($row_user = mysqli_fetch_object($Result_users))
{
$comment_view=$row_user->comment;
$rate=$row_user->rate;
$email=$row_user->email;
}
}
else { $comment_view="There is No Comment ";
$rate="0";
$email="#";
}
?>
<h1> Pet Owner Review </h1>
<form method="post" action="#"></form>
<label id="comment"> Comment:<br>
<textarea name = "comment" rows="5" cols="20" required ><?php echo $comment_view; ?> </textarea>
</label>
<br>
<label id="rate1"> given Rate :<?php echo $rate; ?> !
</label>
<br><br>
<a href="mailto:<?php echo $email ?>">
<input class = "buttoncontact" type="submit" name="send_comment"
value="Contact Customer via email"></input>
</a>
<!-- <a href="appointment_admin.php"> <button type = "button" id="back"> Back </button> </a> -->
<a href="appointment_admin.php"> <button type = "button" id="backrev"> Back </button> </a>
</form>
</body>
</html>