SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding a comment system to a dynamic page?

    I need some help with this please. I have a dynamic page for example page.php?id=2813, "id=2813" is a variable depending on what the visitor to the site has clicked.

    My issue here is that I need to add a comment system to page.php however as I am just starting to learn PHP I have abosolutely no idea how I'd go about doing this from a coding and database perspective. I suspect I need a seperate table called "comments" in my database then somehow carry over the id from the said pages table and insert it into a table called "pageid" which was then recalled by the comment system. How would I go about doing this?

    Thanks for any help on this

  2. #2
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    One very good tutorial is available on this website:
    http://www.halfadot.com/php_noob/tut12-1.php
    I have implemented this comment on one of my websites, you can see it in action here: www.amritaworld.com

  3. #3
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thankyou very much, I didn't realise it was that simple. I feel stupid now


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •