richiwatts
Technical User
One of my pages is taking over 30 seconds to load and there are only 100 records. Is there anything worng with my code? The only thing I have changed recently is surname and mobile
Code:
<?
$usersList = queryDB("select * from users order by boat_place_number, first_name");
foreach ($usersList as $k => $udata) {
$boatplace = $udata['boat_place_number'] . "";
if ($boatplace == '999')
$boatplace = ' ';
elseif (strlen($boatplace) == 1)
$boatplace = "0$boatplace";
// $name = utf8_decode(trim($udata['first_name'] . "));
if ($name == "") $name = ' ';
$phone = trim($udata['mobile']);
if ($phone == "") $phone = ' ';
$email = trim($udata['email']);
if ($email == "") $email = ' ';
?>
<tr>
<td width="10%" align="center" height="19"><font face="Arial" size="2">
<?=$boatplace?></font></td>
<td width="32%" height="19"><font face="Arial" size="2"><?=$udata['first_name'] . " " . $udata['surname']?></font></td>
<td width="22%" height="19"><font face="Arial" size="2"><?=$phone?></font></td>
<td width="36%" height="19"><font face="Arial" size="2"><?=$email?></font></td>
</tr>
<? } ?>