<table width="100%" cellspacing="0" cellpadding="0" border="0" id="intratesHead"> <tr> <th width="250px" align="center" scope="col">Country</th> <th scope="col" align="center">Code</th> <th scope="col" align="center">Rate/Min</th> </tr> </table> <?php include "../inc/class/search.php"; $dal = new DAL(); $getsearchword = $_GET["sort"]; if ($getsearchword) { $sort = TRUE; $results = $dal->get_models($getsearchword, $sort); displayResult($results); } else { $getsearchword = $_POST["keyword"]; if ($getsearchword == "") { foreach (range('a', 'z') as $letter) { $sort = TRUE; $results = $dal->get_models($letter, $sort); $totalResul = count($results); displayResult($results); if ($results >= 0) { break; } } // end foreach } else {