Location: PHPKode > scripts > DRBRatings > index.php
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Rating Test</title>
<link href="ratings/template/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>Rating Test</h1>

<p>
This page is intended to demonstrate how you can quickly add  
ratings to any page on your website.
</p>

<?php

	// The two lines below are all that is required to add a ratings 
	// control to your page.  Obviously, these need to be placed within  
	// a PHP code block inside a valid PHP page.  You will also need to 
	// configure the settings in config.php properly.
	//  
	// Modify these lines as follows: 
	//
	// * Change the include path to reflect where DRBRatings is installed.  
	// * Change the parameter for show_ratings_control() to reflect a unique  
	//   ID for the rating on this page.  This feature allows you to store  
	//   more than one rating using the same installation of DRBRatings.
	//   New IDs must be added to the VALID_RATING_IDS array in config.php. 
	
	include_once('ratings/ratings.php');
	show_ratings_control("1");
	
?>
<p>
Multiple, independent ratings forms can be driven off the same instance, for example:
</p> 
<?php
	show_ratings_control("2");
?> 
</body>
</html>
Return current item: DRBRatings