Raised This Month: $32 Target: $400
 8% 

Showing only 5 items in menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 03-27-2013 , 05:54   Showing only 5 items in menu
Reply With Quote #1

Hey guys, just wanted to know.

I am using SQL to add items to a menu, but let's say I only want 5 items to show up, how would that be possible?


Regards


edit:

would it be by setting DESC LIMIT to 5?

Last edited by DoPe^; 03-27-2013 at 05:58.
DoPe^ is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-27-2013 , 06:07   Re: Showing only 5 items in menu
Reply With Quote #2

yes
Code:
SELECT * FROM tablename
LIMIT 0 , 5
Then next 5 items
Code:
SELECT * FROM tablename
LIMIT 5 , 5
Bacardi is offline
DoPe^
Veteran Member
Join Date: Jul 2008
Location: Denmark / Copenhagen
Old 03-27-2013 , 06:09   Re: Showing only 5 items in menu
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
yes
Code:
SELECT * FROM tablename
LIMIT 0 , 5
Then next 5 items
Code:
SELECT * FROM tablename
LIMIT 5 , 5
alright, thanks Barcardi ;)
DoPe^ is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-27-2013 , 09:31   Re: Showing only 5 items in menu
Reply With Quote #4

Not sure what your goal is, but you could show more on a single page by disabling pagination. I think it truncates at 9 menu options
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode