Drawing material from inside a site to place it on the front page?

Discussion in 'HTML & Website Design' started by swollenpickles, Nov 26, 2006.

  1. #1
    I have a question, I have a static front page on a site (it's basically a portal where you can branch off to 3 different things). I would like it to look a little more dynamic by posting the first few lines of the latest blog post, and a list of say, the 5 last comments posts in the forum, on the front page. How would I do this??
     
    swollenpickles, Nov 26, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    there are a lot of ways to do it.

    personally I would use php to access the database of the blog and pull the info you want.
     
    disgust, Nov 26, 2006 IP
  3. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Cheers, do you have any links etc I could find more info on this?
     
    swollenpickles, Nov 27, 2006 IP
  4. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #4
    www.php.net

    can't be much more specific because I have no idea how the data is being stored.

    it'd generally involve

    1) mysql functions-- connect to the db, grab the info, store the results in a variable

    2) deal with the output using the previous variable
     
    disgust, Nov 27, 2006 IP
  5. swollenpickles

    swollenpickles Active Member

    Messages:
    1,271
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #5

    The blog is in wordpress, and the forum is phpBB2 if that helps?
     
    swollenpickles, Nov 29, 2006 IP