Select records from the database table and fetch data in a HTML table, follow this code and try it.
$sql=mysqli_query($con,"SELECT * from `table` ORDER BY `id` DESC"); while($row=mysqli_fetch_array($sql)) { ?> <tr> <td><?php echo $row['1']; ?></td> <td><?php echo $row['2']; ?></td> <td><?php echo $row['3']; ?></td> <td><?php echo $row['4']; ?></td> </tr> <?php } ?>
Question and answer is powered by AnsPress.io