<?php
include 'connection.php';
$sql="SELECT * FROM students ";
$result=mysqli_query($conn,$sql);
?>
This is my little sql code for displaying all from the DB.It worked yesterday perfectly but i tried to change some things and now when i back up my code it doesn't working .
<table border=2px;>
<tr>
<th>Id</th>
<th>Име</th>
<th>Факултетен Номер</th>
</tr>
<?php
if (mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_array($result)) {
?>
<tr>
<td><?php echo $row["student_id"]; ?></td>
<td><?php echo $row["student_fname"]. " " .$row["student_lname"] ?></td>
<td><?php echo $row["student_fnumber"]; ?></td>
</tr>
<?php
}
}
?>
</table>
This is my HTML