'.$query.''; $result = mysql_query($query); $num = mysql_num_rows($result); $pages = intval($num/20); if($num % 20 != 0){ $pages++; } $navbar = ''; if($page=='') { $page = 1; } for($i=1; $i<=$pages; $i++) { if($i==26){ $navbar.='
'; } if($page == $i){ $navbar.= ''.$i.' '; }else{ $navbar.= ''.$i.' '; } } if($pages == 1){ $navbar = ''; } if($num == 20){ $navbar = ''; } $limit = ((20*$page)-20); $current = 'Page '.$page.' of '.$pages; $query = "SELECT * FROM listings WHERE status='online' AND type='featured' ORDER BY date DESC LIMIT ".$limit.", 20"; $result = mysql_query($query); $results .= '
'; $cnt = 0; $results .= '
'; while($row = mysql_fetch_array($result)) { $found = true; $cnt++; $fname = str_replace(" ", "_", $row['title']); $fname = str_replace("/", "", $fname); $fname = str_replace(".", "", $fname); $fname = str_replace(",", "", $fname); $fname = str_replace(":", "", $fname); $fname = str_replace(";", "", $fname); $fname = str_replace("\\", "", $fname); $fname = 'listings/'.$fname.'_'.$row['id'].'.php'; $results .= ''.$fname.'
'.$row['title'].'
'; if($cnt == 4) { $results .= '
'; } $i++; } $results .= '
'; mysql_close(); $categories = getcategorieslist(); ?> Classic Cars Sales, Antique Cars, Old Cars, Classic Car Classified Ads

Featured Ads


Car Shows