View Full Version : Comments code?
experience66
11-20-2006, 06:23 PM
I host a video website, the videos are displayed on a seprate page, underneath the video i want to allow a viewer to add a comment, which is then displayed to other users, kind of similar to yutubes, but something that is very easy to do.
thanks.
penguin
11-21-2006, 01:52 AM
this is pretty easily accomplished.
this will require some sort of database.
Do you have access to MYSQL or sqlServer databases?
This should be your first step, setting up a connection to the database.
Then create your users table
Then create your comments[what ever you want to call it] table
add a form to your video page
collect the data from the form
store it in the database
then display the data
this is just a quick list of things that you wilil want to do.
djr33
11-21-2006, 02:24 AM
I wrote a fairly simple script for something like this--
http://www.dynamicdrive.com/forums/showthread.php?t=9940&page=2
Note: the author of that thread called it a message board, but it was intended as a comment script.
It's not too complex... but does its simple job well. Might need a couple things fixed/customized.
Note that you need php and it must be allowed to access/change files on your server.
This uses .txt files so it's much more limited than with a database. I'd recommend that, but this is a simpler answer... your choice.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.