% include "../newindex-top.htm"; %> <% require "../dbConsts.php3"; %> <% require "../variables.php3"; %>
| |||
|
<% $TotalRecords = 0; $myfile1 = file("22kaftans.cgi"); for($increment = 0 ; $increment < count($myfile1) ; ++$increment ) { $TotalResults = $TotalResults + 1; $TotNo = count(explode("|" , $myfile1[$increment])); $TotalRecords = $TotalRecords + $TotNo -1; } %> Top <% echo $TotalRecords; %> results <% if($bool != "false") { $no = 0; } $myfile = file("22kaftans.cgi"); for( $gop = 0 ; $gop < count($myfile) ; ++$gop ) { $item = $myfile[$gop]; $item_id = explode("|" , $item ); if($no == $gop ) { for($gop1 = 0 ; $gop1 < count($item_id) ; ++$gop1 ) { $item_id1 = ereg_replace("\n" , "" , $item_id[$gop1]); $item_id1 = ereg_replace(" " , "" , $item_id1); $sql = "SELECT * FROM items WHERE item_id = '$item_id1'"; //$rs = mysql_db_query($DB_NAME, $sql, $connection); mysql_select_db($DB_NAME); $rs = mysql_query($sql); while($rec = mysql_fetch_array($rs)) { %> <% } } } } %> | |||