-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect_cancel_projects.php
38 lines (32 loc) · 1.21 KB
/
select_cancel_projects.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
<?php
$search = $_GET['search'];
$email = $_GET['email'];
$connect = mysqli_connect('localhost', 'root', 'lakshya', 'lakshya');
$result = mysqli_query($connect, "SELECT * FROM reason WHERE title like ('%$search%') OR category like ('%$search%')");
$qr = mysqli_num_rows($result);
echo "<table class='table table-striped table-responsive table-bordered text-center col-md-12'>";
echo "<tbody>";
if($qr > 0)
{
while ($row = mysqli_fetch_assoc($result))
{
if($row['email'] == $email){
echo "<tr class='text-center'>
<td>" . $row['id'] . "</td>
<td>" . $row['title'] . "</td>
<td>" . $row['category'] . "</td>
<td class='dd'>" . $row['reason'] . "</td>
<td>" . $row['review'] . "</td>
<td>" . $row['dateCancelled'] . "</td>
</tr>";
}
}
}
else
{
echo "<style> thead{ border: none; opacity: 0; } </style>";
echo "<h5 class='text-center mt-3'> No Project Matched. </h5>";
}
echo "</tbody>";
echo "</table>";
?>