if(!isset($limit)) {$limit="12";} if(!isset($start)) {$start="0";} if(!isset($sort)) {$sort="prod_rate";} if(!isset($ord)) { if(($sort=="sale") OR ($sort=="PriceList")) { $ord="ASC"; } else { $ord="DESC"; } } if(!isset($cat) OR ($cat=="")) {$sqlcat="";} else {$sqlcat="AND GenderList = '$cat'";} $begin=$start+1; include('header.inc'); if($brand_id=="") { $page_brand="All Brands"; $brand_idq="%"; } else { $sql="SELECT brand_name FROM brands WHERE brand_id = '$brand_id'"; $result=mysql_query($sql, $db) or die(mysql_error()); $brandArray=mysql_fetch_array($result); $page_brand=ucwords(strtolower($brandArray['brand_name'])); $brand_idq=$brand_id; } if($_GET['submit']=="submit") { $search_date=date("Y-m-d"); $search_time=date("H:i:s"); $sql="INSERT INTO comparis_searches (search_id,search_shoeq,search_brandq,search_date,search_time) VALUES ('','$shoeq','$brand_idq','$search_date','$search_time')"; $result=mysql_query($sql, $db) or die(mysql_error()); } ?>
Order By |
Narrow Results |
Display |
Page =$thispage ?> of =$pages ?> |
|---|---|---|---|
of shoes |
There are no $page_brand shoes in this category. Check spelling or try to broadening your search criteria.
"; } $sql="SELECT *,count(rev_rate) AS num_rev,(sum(rev_rate)/count(rev_rate)) AS prod_rate,(SalePriceList/PriceList) AS sale FROM shoes,brands LEFT JOIN comparis_reviews on comparis_reviews.rev_prod_id = shoes.ProductID WHERE shoes.Brand = brands.brand_code AND brands.brand_id like '$brand_idq' AND (shoes.name like '%$shoeq%' OR shoes.Description like '%$shoeq%' OR shoes.StyleList like '%$shoeq%' OR shoes.SubStyleList like '%$shoeq%' OR shoes.KeywordList like '%$shoeq%' OR shoes.DepartmentList like '%$shoeq%' ) $sqlcat GROUP BY shoes.ProductID ORDER BY '$sort' $ord LIMIT $start, $limit"; $result=mysql_query($sql, $db) or die(mysql_error()); while ($newArray=mysql_fetch_array($result)) { $shoe_id=$newArray['ProductID']; $name=$newArray['Name']; $replace=array(" ","'","."); $name_url=strtolower(str_replace($replace,"-",$name)); $description=$newArray['Description']; $brand=$newArray['Brand']; $branddescription=ucwords(strtolower($newArray['BrandDescription'])); $price=$newArray['PriceList']; $saleprice=$newArray['SalePriceList']; $onsale=$newArray['OnSale']; $keyword=$newArray['KeywordList']; $url=$newArray['BuyURL']; $image=$newArray['SmallImageList']; $num_rev=$newArray['num_rev']; if($newArray['prod_rate']>0) { $prod_rate=number_format($newArray['prod_rate'],2); } else { $prod_rate=0; } $star_pos = (round(((5-$prod_rate)*2)+1))*15; if($saleprice<$price){ $off=round((1-($saleprice/$price))*100); $saletag=" $off% off at Shoes.com"; } echo '| Prev'; } else { echo 'Prev'; } ?> | of shoes |
Next'; } else { echo 'Next'; } ?> |