Okay, a database can only hold many tables but you will only need one. "comments" is a fine name for the table. If you want to collect both their name and a comment, you will need two fields in the table. One for the comment and one for the name.
In order to get data from the user, you need to use html to place forms for them to use. Here's an example:
Code:
<form method="post" action="submit.php">
<p>Name: <input type="text" name="name" /></p>
<p>Comment:</p>
<textarea rows="5" cols="40" name="comment"></textarea>
<p><input type="submit" value="Post Comment" />
</form>
Then in submit.php, you would have to get that data and store it into the database:
Code:
<?php
if(isset($_REQUEST['name']) && isset($_REQUEST['comment'])) {
$conn = mysql_connect("localhost","user","password");
mysql_select_db("database_name",$conn);
mysql_query("INSERT INTO comments (name, comment) VALUES('".mysql_real_escape_string($_REQUEST['name'])."', '".mysql_real_escape_string($_REQUEST['comment'])."' ");
echo "Thank you, your comment has been submitted.";
}
?>
Then you could use something similar to what I posted on page 2 to view the comments.
Bookmarks