![]() |
PHP/MySql help...
I'm setting up a new store using CMS to sell sex toys, movies, etc. An online adult store specializing in niche oddities and arousals. I have it set up so all of the products show up on the main page under most popular products. However, it will not stop listing them so when I have 500 products, my index body content has 500 products. I want to stop the display at 12 items. Below is the code, how do I change it so it stops after 12 products are displayed?
Code:
<div id="our_prod"> |
select p.products_id,pd.products_name ,p.products_image from products p,products_description pd where p.products_id=pd.products_id and pd.language_id=1 and p.special_status=1 and p.left_status limit 12
|
Change the query line to
Code:
$selprod=mysql_query("select p.products_id,pd.products_name ,p.products_image from products p,products_description pd where p.products_id=pd.products_id and pd.language_id=1 and p.special_status=1 and p.left_status limit 12"); |
ROCK & FUCKING ROLL!!! :thumbsup
Thanks! |
..............
|
thread closed...
|
Quote:
|
Quote:
|
osCommerce is such a pile of shit.
|
Quote:
|
Quote:
|
well good luck dude :)
|
All times are GMT -7. The time now is 07:33 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc