Hello all,
I'm fairly new to php, and can't figure this thing out:
Mysql design:
Table_users:
ID,USERNAME
1,Name1
2,Name2
Table_comments:
ID,USERNAME_ID,COMMENT
1,1,"Comment 1"
2,1,"Comment 2"
I use a for loop to fill a form with <input type=”text”>
So i have the following output:
Name: Name1
Comments:(input type=text)
Comment 1|Delete?
Comment 2|Delete?
|Add
I want to be able to edit the existing comments, or add a new comment.
How can I?:
-list all the comments, and display one extra <input> form for a new comment
-make sure that if i edit both “comment 1” and “comment 2” all gets executed as a mysql command
-perhaps make it possible to edit “comment 1” and the new blank “comment 3” at the same time
If anyone can help me out, it would be great
Thanks in advance.
Luuk