-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewproduct.php
More file actions
51 lines (34 loc) · 847 Bytes
/
viewproduct.php
File metadata and controls
51 lines (34 loc) · 847 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
44
45
46
<?php
$con = mysqli_connect("localhost", "root", "");
//Selecting Database
$db = mysqli_select_db($con, "userpass");
if (!$con) {
die("Connection failed: " . mysqli_connect_error());
}
?>
<?php
$query="select * from addstore";
$result=mysqli_query($con, $query);
?>
<div>
<table border="1px" style="width:600px; line-height:40px; margin-left:400px; ">
<tr>
<th colspan="4"><h2>Data Record</h2></th>
</tr>
<th> Title </th>
<th> Catagory </th>
<th> Location </th>
<th> Image </th>
</tr>
<?php while($rows=mysqli_fetch_assoc($result))
{
?>
<tr> <td><?php echo $rows['title']; ?></td>
<td><?php echo $rows['catagory']; ?></td>
<td><?php echo $rows['location']; ?></td>
<td><?php echo $rows['image']; ?></td>
</tr>
<?php
}
?>
</div>