$ile) $stop=$ile; if($ile>$results){ $tempnr=ceil($ile/$results); $tempnr_stop=$page_nr+5; $tempnr_start=$page_nr-5; if($tempnr_stop>$tempnr) $tempnr_stop=$tempnr+1; if($tempnr_start<1) $tempnr_start=1; $pages="   Start "; if($page_nr>1 and $page_nr_prev==1) $pages=$pages."   Previous     "; if($page_nr>1 and $page_nr_prev!=1) $pages=$pages."   Previous     "; for($i=$tempnr_start;$i<$tempnr_stop;$i++){ if($i==$page_nr) $pages=$pages." $i "; else {if($i==1) $pages=$pages." [$i] "; else $pages=$pages." [$i] "; } } if($page_nr<$tempnr) $pages=$pages."    Next    "; $pages=$pages."  End    "; //$pages=" Browse Pages: ".$pages; } $k=$start1; $catprograms=""; if($categorysec_nr==0){ $result = mysql_query("SELECT id,id_1,Program_Name,Program_Version,Char_Desc_250,Program_Type,Program_Cost_Dollars,File_Size_MB,screenshot_localfile,pdate,programname_link,companyname_link,Program_Rating FROM `final_browse_categories` where categoryprim_nr='$categoryprim_nr' order by downloads DESC limit $start,$results", $link_id); $page_title="$categoryprim"; //$page_title="Browse $categoryprim : $start1-$stop programs"; // $order_type="Order programs after downloads or name     (currently are listed after downloads)"; } else{ $result = mysql_query("SELECT id,id_1,Program_Name,Program_Version,Char_Desc_250,Program_Type,Program_Cost_Dollars,File_Size_MB,screenshot_localfile,pdate,programname_link,companyname_link,Program_Rating FROM `final_browse_categories` where categoryprim_nr='$categoryprim_nr' and categorysec_nr='$categorysec_nr' order by downloads DESC limit $start,$results", $link_id); $page_title="$categorysec - $categoryprim"; //$page_title="Browse $categorysec - $categoryprim : $start1-$stop programs"; // $order_type="Order programs after downloads or name     (currently are listed after downloads)"; } while ($row = mysql_fetch_row($result)) { $id=$row[0]; $id_1=$row[1]; $Program_Name=stripslashes($row[2]); $Program_Version=$row[3]; $Char_Desc_250=stripslashes($row[4]); $Program_Type=$row[5]; $Program_Cost_Dollars=$row[6]; $File_Size_MB=$row[7]; $screenshot_localfile=$row[8]; $pdate=$row[9]; $programname_link=$row[10]; $companyname_link=$row[11]; $Program_Rating=$row[12]; $Program_Rating_Curent=$Program_Rating*20; if($screenshot_localfile!="") $localscreenshot=""; else $localscreenshot=""; if($bgc==1) $sectiontableentry='sectiontableentry1'; else $sectiontableentry='sectiontableentry2'; $bgc++; if($bgc==3) $bgc=1; if($linkbackurl!='') {$class=" class=\"redtitle\""; $list_title="$Program_Name $Program_Version"; } else { $class=" class=\"category\""; $list_title="$Program_Name $Program_Version"; } $catprograms=$catprograms." $localscreenshot $Program_Name
Size: $File_Size_MB MB
Licence: $Program_Type
Price: $Program_Cost_Dollars USD
Description: $Char_Desc_250

Download

"; if(($ad==0) AND ($categoryprim_nr!=5 or $categorysec_nr!=5)) $catprograms=$catprograms."
"; $k++; $ad++; } mysql_close($link_id); ?> <? echo("$page_title"); ?>