I have a textarea, where the user can add their comments. Now after adding the comments and clicking submit, it needs to save the comments along with user name and timestamp.
<tr><font size="2" face="tahoma" color="black">
<b>Comments </b></br></br>
</tr>
<textarea name="comments" id= "comments" ROWS="10" Cols = "130"> </textarea>
<br/><br /><br /><br />
Above is my HTML markup for comments and I save the session login username in a variable $user.
Now how can I save it along with timestamp and user?
Well first off you need to create a new table in your database named “comment”
Comment will now hold 4 values: id, comment, time, user.
Use an insert query to insert to the database