"Sort By Date","stamp asc"=>"sort by Date: Newest first" ,"stamp desc"=>"sort by Date: Oldest first"); //-------------------- SEARCH ALGO -------------------------- include $_news."advanceSearch.php"; //-------------------- END OF SEARCH ------------------------- echo '
'; echo '

News

'; echo ''; while($row = $db->next()) { $name = str_replace(" ", "-", $row['title']); $name = stripslashes($name); $desc = htmlspecialchars($row['short_desc']); $link = $_url."/".urlencode($name)."-nid-".$row['id']; $link = strtolower($link); echo '
'; echo '
'.$row['title'].'
'; echo '
'; echo $row['stamp'].'
'; echo '
'; echo '
'.$desc; echo '
Read More
'; echo '
'; } if($num_of_results ==0){ echo '
no news matched your search criteria
'; } //$navigator ->printNavigator(); //$navigator ->printCounter(); echo '
'; echo '
'; echo '
'; echo '
'; require_once $_root.'right.php'; require_once $_root."foot.php"; ?>