Jump to content

Need some general guidance on creating sub-nav


sinisnap

Recommended Posts

Hi

This is my first post, so please be kind...

I'm trying to build a sub-nav that lists all volumes in one table but they need to be grouped according to their publishing date id's with a header for each group stating the respective publishing date. in the end it should look like this:
[img]http://www.sinisnap.com/subnav.gif[/img]

i got the basic mysql query right, i believe and it goes like this:
[code]  $result = @mysql_query(
      "SELECT title, date FROM volume, pubdate WHERE volume.pdid = pubdate.id ORDER BY pubdate.id");
  if (!$result) {
    exit('<p>Error fetching volume details: ' .
        mysql_error() . '</p>');
  }[/code]

however, i'm not sure how to proceed from there..anyone able to/care to give me some pointers on how to approach this?

thank you!
jarin
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.