|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 07/05/2009 at 11:39AM PDT, ID: 24545067 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: |
The Recordset Query:
mysql_select_db($database_golena_IDBdb, $golena_IDBdb);
$query_rsProductsDiscount = sprintf("SELECT ((IDBdb.retail_price-IDBdb.price)/IDBdb.retail_price) AS discount, IDBdb.name, IDBdb.shortDescription, IDBdb.merchant_display, IDBdb.retail_price, IDBdb.price, IDBdb.url, IDBdb.thumbnail, IDBdb.productID, IDBdb.category, IDBdb.category_display, IDBdb.subcategory, IDBdb.subcategory_display, IDBdb.merchant FROM IDBdb WHERE (((IDBdb.subcategory)='%s')) ORDER BY %s %s", $colname2_rsProductsDiscount,$orderby_rsProductsDiscount,$sortby_rsProductsDiscount);
$query_limit_rsProductsDiscount = sprintf("%s LIMIT %d, %d", $query_rsProductsDiscount, $startRow_rsProductsDiscount, $maxRows_rsProductsDiscount);
$rsProductsDiscount = mysql_query($query_limit_rsProductsDiscount, $golena_IDBdb) or die(mysql_error());
$row_rsProductsDiscount = mysql_fetch_assoc($rsProductsDiscount);
if (isset($_GET['totalRows_rsProductsDiscount'])) {
$totalRows_rsProductsDiscount = $_GET['totalRows_rsProductsDiscount'];
} else {
$all_rsProductsDiscount = mysql_query($query_rsProductsDiscount);
$totalRows_rsProductsDiscount = mysql_num_rows($all_rsProductsDiscount);
}
$totalPages_rsProductsDiscount = ceil($totalRows_rsProductsDiscount/$maxRows_rsProductsDiscount)-1;
The Form:
<form name="SortForm" method="get" action="">
<select name="Order By">
<option value selected="Price ASC">Sale Price - Low to High
</option>
<option value="Price DESC">Sale Price - High
to Low</option>
<option value="Discount ASC">Discount Low
to High</option>
<option value="Discount DESC">Discount -
High to Low</option>
</select>
<input type="hidden" name="category" value="<?php echo htmlentities($_GET['category']) ?>">
<input type="hidden" name="subcategory" value="<?php echo htmlentities($_GET['subcategory']) ?>">
<input type="submit" name="Submit" value="go">
</form>
|
Advertisement