How to create a message box?

Discussion in 'PHP' started by wokaka, Nov 10, 2007.

  1. #1
    I want people to comment below of my new articles. How to do that? I mean, in most blogs we can add our comments below of each article. Now how if I want to add that below my web page? I want to moderate people comments first before I can show up their comments, can I do that?

    I already learned from here:
    http://www.ehow.com/how_2000815_create-shout-box-using-php.html

    but I still don't understand and the explanation is not clear enough for me. Can help me?
     
    wokaka, Nov 10, 2007 IP
  2. Kidijs

    Kidijs Active Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #2
    about comment moderation - you should just add a new value (approved - 0/1, default = 0) to the table, and in the end your query would look like this : SELECT * FROM comments WHERE id='ArticleId' AND approved='1' then add another page, which would be called "unapproved comments", in your admin menu. adding of the options, what to do with the comment (editing, approval, unapproval, or *spooky* even deleteing) should be very simple, even for a newbie ;~)
     
    Kidijs, Nov 10, 2007 IP
  3. wokaka

    wokaka Peon

    Messages:
    2,346
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't understand. Can give me more information?
     
    wokaka, Nov 11, 2007 IP
  4. Kidijs

    Kidijs Active Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    sorry, but I'm not a teacher.
     
    Kidijs, Nov 12, 2007 IP