studgate Posted August 10, 2007 Share Posted August 10, 2007 I am trying to create a comment system so users of the site can comment on data added. I need to associate the comments with the data id and get the user from the users table. CREATE TABLE datacomment ( id int(11) NOT NULL auto_increment, dataid int(11) NOT NULL default '0', text text NOT NULL, userid int(11) NOT NULL default '0', dateposted datetime default NULL, PRIMARY KEY (id) ) TYPE=MyISAM; Any help is welcome, thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/64284-need-help-with-comment-system/ Share on other sites More sharing options...
frost Posted August 10, 2007 Share Posted August 10, 2007 Looks like you have things figured out here? In the form your user is filling out you might want to use a hidden field for the dataid. Anything specific you want to know? Quote Link to comment https://forums.phpfreaks.com/topic/64284-need-help-with-comment-system/#findComment-320625 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.