Getting a comment script to work.

I have a comment script that is very light weight and easy to use, the only problem is I don’t know how to get it to work with my cms.
[php]

<?php $id = mysql_escape_string($_GET['id']); ?> Test Page

Test page

Here is the content...

<? require('inc_rate.php'); getComments("$id"); submitComments("$id","$PHP_SELF"); ?> [/php] That is the code for it, the problem is that instead of $id you are supposed to use a different number for each page, but I have one page that dispays the content from a database based upon the URL (e.g www.yoururl.com/article.php?id=12). What I need the script to do is use the id from the URL to get and post comments.

The files from the developer are (http://www.zimmertech.com/commentscript.zip) and the tutorial is (http://www.zimmertech.com/tutorials/php/25/comment-form-script-tutorial.php).

Sponsor our Newsletter | Privacy Policy | Terms of Service