Hey guys how are you?
the comments table goes as follows
I need some help with inserting a comment in a database WHERE id=shoe_idCREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`shoename_id` int(11) NOT NULL,
`created` datetime NOT NULL,
`author` varchar(255) NOT NULL,
`pros` text NOT NULL,
`cons` text NOT NULL,
PRIMARY KEY (`id`),
KEY `appetizers_id` (`appetizers_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
This is the form format table
HTML Code:<tr><td><table width="328" style="top:850px;" class="calamar"><td width="320" style=" line-height:3;"><strong>Comments:</strong></td> <tr></tr><td style="font-family:\'Times New Roman\', Times, serif; font-size:14px;"> <form name="itemcomments" action="itemscomments.php" method="post"> <label for="fullname"></label> <table class="delo" width="85%" border="0" cellspacing="6"> <tr> <td width="15%"><label for="label">Nickname:</label> </td> <td width="85%"><input name="fullname" type="text" id="fullname" size="35" maxlength="85" /></td> </tr> <tr> <td>Pros:</td> <td><textarea name="textarea" cols="35" rows="5"></textarea></td> </tr> <tr> <td>Cons:</td> <td><textarea name="textarea" cols="35" rows="5"></textarea></td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </form> </table> </td> </tr>
Later on I will ask you for some update, display of the comment and delete but by now I just need some example of inserting the comment.







Bookmarks