My web page exceed maximum execution time of 300 seconds as I adjust it. Is there a way to speed up loading of my web page?
This is my code
<tbody>
<?php
$sql = $mysqli->query("SELECT * FROM mobile order by timestamp asc");
if ($sql->num_rows > 0) {
while ($row = $sql->fetch_assoc()) {
$contactID = $row['id'];
$contactName = $row['name'];
$contactEmail = $row['email'];
$contactAddress = $row['address'];
$contactOthers = $row['others'];
$contactNumber = $row['number']; ?>
<tr>
<td><?php echo $contactName; ?></td>
<td><?php echo $contactNumber; ?></td>
<td><?php echo $contactEmail; ?></td>
<td><?php echo $contactAddress; ?></td>
<td><?php echo $contactOthers; ?></td>
<td class="td-actions text-center">
<a href="#edit<?php echo $contactID; ?>" data-toggle="modal">
<button type="button" title="Edit Contact" class="btn text-warning" style="background-color: transparent; border: none;">
<i class="fas fa-edit"></i>
</button>
</a>
<a href="#assign<?php echo $contactID; ?>" data-toggle="modal">
<button type="button" title="Assign to Group" class="btn text-primary" style="background-color: transparent; border: none;">
<i class="fas fa-object-group"></i>
</button>
</a>
<a href="#delete<?php echo $contactID; ?>" data-toggle="modal">
<button type="button" title="Delete Contact" class="btn text-danger" style="background-color: transparent; border: none;">
<i class="fas fa-trash-alt"></i>
</button>
</a>
</td>
<?php include 'xtensions/Actions/contactActions.php'; ?>
</tr>
<?php
}
}
?>
</tbody>
In my MySQL Database that i am fetching rows has a 306 rows.