...

View Full Version : Simple Comment Script for Gallery type webpage?



luminatingsky
09-09-2009, 07:11 AM
Hi,

I have a website where i host my webcomics. Each week i add a new comic and i use php/msql to display and go to the previous and next comics

What i would like to do is add a div under the area of my comic and have a simple comment script there, so that someone can comment on the comic, go to the next comic and leave different comments for that one. Before i just had a basic chat box.

Can someone help me out with a very simple comment system? Just name, email, website, comment. I'd like to be able to style the look of the comment system with css.

Thanks in advance,

Tara

Zangeel
09-09-2009, 07:51 AM
Create a new table in mysql, with the structure like



CREATE TABLE IF NOT EXISTS `comments` (
`comment_id` MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` VARCHAR(60) NOT NULL,
`email` VARCHAR(60) NOT NULL,
`body` TEXT NOT NULL
)


Then just use MySql insert codes, then to retrieve them, loop them through a mysql_fetch_assoc to display em.

Basic stuff.

Make an attempt and post back with what you've got.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum