Developed by Joe Pieruccini
under Creative Commons Attribution-Noncommercial 2.5 Australia License
at www.maniacomputer.com
email : jp50@maniacomputer.com
Disclaimer This free software may be freely distributed, provided that no charge above the cost of distribution is levied, and that the disclaimer below is always attached to it.
The
software
is provided as is without any guarantees or warranty. Although the author has attempted to find and correct any bugs in the free software programs, the author is not responsible for any damage or losses of any kind caused by the use or misuse of the programs. The author is under no obligation to provide support, service, corrections, or upgrades to the free software programs.
Also works on .htm .html extensions if your host have enabled
the web server to recognize php code with these files extensions.
For further explanations visit this page
www.maniacomputer.com/WebServer/PHPasHTML.html
It has been tested in IE6 , IE7 , Firefox
Can be installed in minutes
you can customize it easily.
pre requisites:
PHP4 +
MySql
1 database
username with create,update,delete,insert permissions
Make sure to have ready the name of an existing MySql Database,or create a
new Database prior starting.
Open the file config_rating.php in your text editor.
Edit the following line of code
$host = "localhost"; // your host name $username = "MyUsername"; // change
MyUsername with your user name to access MySql $password = "MyPassword"; // change
MyPassword with your password to access MySql $database = "db"; // change db
with The name of the database
Save the file
Nowupload the folder rating on the root
folder of your web site .
add the followin row of code at the top of the page where you want the
rating,it must be before anithing on the page,even white space
<?php ob_start();?>
Add the following code where you want the counter to be in the page:
Make sure the include path is pointing to the right folder.
Set a different $id for any page or listing ,for example,on Page1 $id =1 on
Page_test $id=2 ,so the user will rate the right page/listing
- That's all.you have to do for your rating to work.