Left Quote    Every day I get up and look through the Forbes list of the richest people in America. If I
- Robert Orben    
Right Quote
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply

        Viewing Topic: Comments Script
  This user is offline  keefy
  Subject: "Comments Script" Posted: @ 2:45 am on Sep 25 2007   

Member #: 414
Rank: User - (1)
Since: 09/24/07
Posts: 1

Hi your comment script looks great, though it would be nice with the abilty to use smilies

Anyway ive had a forum for ages now, but never really read up on php except for added mods to the forum. i would like to use your comment script on my html website, i have got different restuarants in egypt each on its own page and would like only the members of my forum to be able to leave comments on what the place is like...

Ive added the aql to the database and ive also copyied the full script, but then im lost what to do...

the text file that ive copied, do i make it into a php file called comment.php or do i just add all the code from the script into each one of my restuarant pages...

Im sorry for sounding lame, but i suppose if you dont know, ASK


    Viewed: 5,683 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Comments Script" Posted: @ 3:00 am on Sep 25 2007    

Member #: 1
Rank: Admin. - (1,508)
Since: 02/06/05
Posts: 602
From: USA

I'd put it in a separate file and call it "comments .php". Then, on each page you want to allow comments, use the following code:

<? include($_SERVE R['DOCUMENT_RO OT'].'/path/t o/file/comments .php'); ?>

Then you're good to go. Yes, the forums are here just for questions like this. Everyone that reads these forums will have the opportunity to help you learn. And soon enough, you'll find yourself replying and helping out others that were asking the same questions as you.

-bs0d |

    Viewed: 5,678 Times | Reply to This | To top
Viewing Page: 1 of 1

1 |

You must be logged in to post on the forums. Login or Register

"" Copyright © 2002-2020; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank