I want to display a database table in my .php web page. I use the following code:
<?php
include('../dbconnect.php');
$det= SELECT * FROM user ;
$result=mysqli_query($con,$det);
mysqli_close($con);
while($row=mysqli_fetch_array($result))
{
echo '<table style="width: 100%">
<tr>';
echo "<td>".$row['name']."</td>";
$del=$row['uid'];
echo '<td><a href=functions/deleteuser.php?id=' .$del.'>Delete</a></td>
</tr>
</table>';
}
?>
But, when I include this code, the whole web page appears as blank. Without this code, the page works fine. What is wrong with this code?