Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //this code can go underneath the connection details.
- $query = mysqli_query($conn, "Select ID, Age, DoB from student_details") or die(mysql_error($conn));
- echo("<table border=\"1\">");
- while ($row = mysqli_fetch_array($query)) {
- printf("<tr> <td>%s</td> <td>%s</td> <td>%s</td> </tr>", $row['ID'], $row['Age'], $row['DoB']);
- }
- echo("</table>");
- mysqli_close($conn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement