forked from sachini1997/Functional-Website-Test-V0.0.0.1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.php
37 lines (26 loc) · 859 Bytes
/
display.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
<?php
require_once 'dbcon.php';
?>
<?php
/*
$sql="desc info_table ";
$result = mysqli_query($sql) or die("Bad Querry inserted :$sql");
echo"<table border='1'>";
<echo"<tr> <td>model_id</td><td>reg_name </td><td>upl_file</td>mdl_info</tr>";
while ($row =mysqli_fetch_assoc($result) ) {
<echo"<tr> <td>$row['model_id']</td><td>$row['reg_name'] </td><td>$row['upl_file']</td><td>$row['mdl_info']</td></tr>";
}
echo"</table>";
*/
$sql = "SELECT model_id,reg_name,upl_file,mdl_info FROM info_table";
$result = $con->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "id: " . $row["model_id"]. " - Name: " . $row["name1"]. " " . $row["info"]. "<br>".$sql['upl_file'];
}
} else {
echo "0 results";
}
echo GET_['upl_file'];
?>