Jump to content

Large list and subnav


shag

Recommended Posts

I have been working on a website and now I am at the point where I need to add a roster of about 100 names along with bios. I was wondering what the best way to go about creating such a large list would be so it did not look too terrible. I also have navigation to pages setup as ?page=brothers and I wanted to add a subnav to the brothers to include their name like: ?page=brothers&name=shag I did some searching but could not find anything that looked like it would work. Any tips and help are greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/91591-large-list-and-subnav/
Share on other sites

Sorry if I was unclear.  Basically I am building a roster, which contains roughly 100 names.  I need a way to list these nice and neat so the website does not look bad.  I have my navigation setup to the page as site.com/?page=brothers  Now when you click one of the names on the roster I would like it to be...  site.com/?page=brothers&name="theirname".  Does that make more sense?

Link to comment
https://forums.phpfreaks.com/topic/91591-large-list-and-subnav/#findComment-469175
Share on other sites

This is my current navigation and as of right now I have no code for the names as I am not sure the best way to go about listing so many...

 

<?php 
  $page = $_GET['page'];
  if($page){  
  $site = file_exists($page.'.php') ? $page.'.php' : 'error.php';}
  else{
  $site = 'home.php';      
  }
  include($site);
  ?> 

 

Link to comment
https://forums.phpfreaks.com/topic/91591-large-list-and-subnav/#findComment-469177
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.