irishpeck 0 Report post Posted June 3, 2009 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
rvalkass 5 Report post Posted June 3, 2009 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
irishpeck 0 Report post Posted June 3, 2009 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
rvalkass 5 Report post Posted June 3, 2009 Go ahead, and we shall see what we can do. Share this post Link to post Share on other sites
irishpeck 0 Report post Posted June 3, 2009 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