-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.php
More file actions
36 lines (32 loc) · 772 Bytes
/
check.php
File metadata and controls
36 lines (32 loc) · 772 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
<?php
session_start();
?>
<?php
$id = $_GET['id'];
//echo $id;
$servername="localhost";
$username="root";
$password="";
$database="add";
$conn = mysqli_connect($servername,$username,$password,$database);
$sql = "SELECT * FROM `fer` WHERE id='$id'";
$result = mysqli_query($conn,$sql);
$row = mysqli_fetch_assoc($result);
?>
<div class="col-12">
<?php
if(mysqli_num_rows($query_run)>0)
{
while($row = mysqli_fetch_assoc($query_run))
{
?>
<div class="col-12">
<a href="detail.php?id=<?php echo $row['id']?>"><button type="button" class="btn btn-primary">Place Order</button></a>
<?php
}
}
else
{
echo"record not found";
}
?>