mysql_select_db($database_Leyla, $Leyla);
$query_rs_items = " SELECT max(name) as name, max(image) as image, max(price) as price, code, max(id) as id FROM products
WHERE type = 'Necklaces' AND $colour_query AND price BETWEEN $range[0] AND $range[1]
Group by code
ORDER BY price ASC";
$rs_items = mysql_query($query_rs_items, $Leyla) or die(mysql_error());
$row_rs_items = mysql_fetch_assoc($rs_items);
$totalRows_rs_items = mysql_num_rows($rs_items);
|