simple comment script

Discussion in 'PHP' started by nrodes, Oct 28, 2008.

  1. #1
    I am trying to make a simple group comment kinda thing. like where theres a text field and you just type your comment and then hit post and the message will appear at the top of a list of messages.

    How would i do that? If I just did a self submission script and displayed the variables then it wouldn't display for every body?

    Could some body give me a script??
     
    nrodes, Oct 28, 2008 IP
  2. websushil

    websushil Active Member

    Messages:
    137
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    hmmmm......... NICE QUESTION I faced the same problem a long time ago.
    I would suggest to make a page comments.php and use a text file to save comments, if that is what you want.
    http://www.w3schools.com/php/php_file.as... <-------- THIS link will be helpful I hope.
    [File Function tutorials] DO SOME GOOGLING

    Make sure coz it is PHP script...
     
    websushil, Oct 30, 2008 IP
  3. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can save the submitted comment in mysql database.. and to display all the comments, you will just need to fetch the comments from database comments table.. it will be displayed for everybody..

     
    webexpert, Oct 30, 2008 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185