If you mean so people can comment on your posted videos, I can. Now, if your videos are on a static page, like an HTML file, you'll have to create a new table for each video and (duh: convert it to a PHP file). Assuming you can create a table and connect to your db,... you do it something like this.
HTML Code:
<form action="[php]<?php echo $_SERVER['PHP_SELF']; ?>[/php]" method="post">
<input type="text" name="name" />
<textarea cols="45" rows="5" name="comment"></textarea>
<input type="submit" name="subcom" value=" Submit Comment " />
</form>
PHP Code:
<?php if(isset($_POST['subcom'])){ $sql = "INSERT INTO video1_comment (Name, Comment) VALUES('$_POST[name]','$_POST[comment]')"; mysql_query($sql); $result = mysql_query("SELECT * FROM video1_comment"); while($row=mysql_fetch_array($result)) { echo "Name: " . $row['Name']; echo "Comment: " . $row['comment']; } ?>
I'm pretty sure that you know how to change this for your own needs.
I hope this is what your looking for.
If you have posted the videos with PHP and MySQL then I will give you the script for that.
Last edited by killdude69; 09-17-2007 at 07:52 AM..
|