Creating a Comment Section

rushie84

New member
Joined
Jul 30, 2006
Messages
1
Programming Experience
Beginner
Hey, I want to create a comment section on my website where a user can enter a few sentences into a text box and it posts it on my page, so we can keep a running conversation going. of course, i want to be able to delete comments if they have profanity. I've got a text box, i just have no clue what to do next. any ideas??
Thanks!
 
nothing easier but you must use DB for the purpose. maybe XML will be just enough althrough i would recommend something bigger, SQL Express, MS Access, mySQL etc.
means create DB, table and couple fields like poster name, date, comment, approved (usually Yes/No datatype).
Then just add one more textBox control for the name of the poster (it is standard ...).
The rest of the task is how to insert data to the database.
using SQL Insert statement and passing values from the two textBox controls including date.now you can accomplish it.
Then through the CP you can read the comment and if you approve just check the approved field.
After that you suppose to read only approved rows/records by using Select statement.


HTH
Regards ;)
 
Back
Top