Jump to content

How do i go about this?


Perad

Recommended Posts

I half achieved it on this page .. http://www.jasonstanley.co.uk/UNC/

You see how you can click on "comments" and it displays the news article and the comments. This was a script which i found and modified. It wasn't very well explained on how it works.

I effectively want the above but 3 layers worth instead of 2.

I want the initial screen to show the categories with the number of articles in each categories.

Category 1 (5 articles)
Category 2 (3 Articles)
Category 3 (12 articles)

I have actually made this much, i just can't work out how to do anymore with php

When the user clicks on a category it will display the following.
--------------------
Category 1
--------------------
--Article 1
--Article 2
--Article 3
--Article 4
--Article 5

Finally the user will click on an article name and it will display the article.

------------------
Article Title
------------------
Article Content.

How would i do it? I thought i could create 3 functions, each one calling the relevant data then i would some how piece to it together. Unfortunately i can't find anything about this is my php book.
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.