Jump to content
xisto Community
irishpeck

Please Help!

Recommended Posts

I really need help with some php code for a new website. If you visit http://forums.xisto.com/no_longer_exists/ you will see all the categories in the middle and below it all the subcategories i was wondering if anyone could help me cut the subcategories down so that theres only 4 with a link below it that then links to a page ive created with all the subcategories listed. If you visit https://www.appliancesdelivered.ie/ you will see exactly what im talking about.

Thanks so much in advance.

Share this post


Link to post
Share on other sites

I'll presume you're using SQL to pull the information from a database? On the query that grabs the list of categories add LIMIT 0, 4 to the end. That will get only the first 4 rows returned by the rest of the query. Then add in your code the link to the page you have created which shows all the categories.

Share this post


Link to post
Share on other sites

I'll presume you're using SQL to pull the information from a database? On the query that grabs the list of categories add LIMIT 0, 4 to the end. That will get only the first 4 rows returned by the rest of the query. Then add in your code the link to the page you have created which shows all the categories.

If i post a sample of the code will you be able to show me where to insert it? and where i could insert the code in order to make the link?

Share this post


Link to post
Share on other sites

Go ahead, and we shall see what we can do.

Your ok i actually got this fixed now thanks though im stuck on something else now. Il post it here in 2 min im just going to try something first

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.