Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-09-2009, 06:11 AM   PM User | #1
luminatingsky
New Coder

 
Join Date: Mar 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
luminatingsky is an unknown quantity at this point
Simple Comment Script for Gallery type webpage?

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

Last edited by luminatingsky; 09-09-2009 at 06:18 AM..
luminatingsky is offline   Reply With Quote
Old 09-09-2009, 06:51 AM   PM User | #2
Zangeel
Regular Coder

 
Zangeel's Avatar
 
Join Date: Oct 2007
Location: public_html/
Posts: 638
Thanks: 17
Thanked 79 Times in 79 Posts
Zangeel will become famous soon enough
Create a new table in mysql, with the structure like

Code:
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.
__________________
PHP Code:
$aString is_string((string)array()) ? true false// true :D 
[/CENTER]
Zangeel is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:08 PM.


Advertisement
Log in to turn off these ads.