<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Manual ----- Dynamic Drop Down, Loads Value With out refreshing Page (Data from Database) </title>
<style type="text/css">
<!--
.style4 {
font-size: 12px;
font-family: Tahoma;
}
.style5 {font-size: 12px; font-family: Tahoma; font-weight: bold; }
-->
</style>
</head>
<body>
<p class="style4"><strong> Multiple ADS Module to USE with (PHPADSNew) <gobinathm at gmail dot com> </strong><strong> </strong></p>
<p class="style4"> This class will help the users, To Display Multiple ads in the Same page but without duplicate ads. The Ads will be Fetched for PHP ADS new. <br />
<br />
<strong>NOTE:</strong> This is not a Stand Alone AD Rotator. This can only be used with PHPADSNew.
</p>
<p class="style4"> <br />
Here is the Example create by implementing the class.. </p>
<ol>
<li class="style4"><?PHP</li>
<li class="style4"> include_once("PHPAdsModule.class.php");</li>
<li class="style4"> $DocumentURL = "/siteadmin/ads/phpadsnew.inc.php";</li>
<li class="style4"> $CampaignID=2;</li>
<li class="style4"> $target="_blank";</li>
<li class="style4"> $MaxAds=3;</li>
<li class="style4">$Style = "<br>"; or $Style = "&nbsp;"; </li>
<li class="style4"> $Ads = new PHPAdsModule($DocumentURL,$CampaignID,$target,$MaxAds);</li>
<li class="style4"> $Ads->GetBanner();</li>
<li class="style4"> $Ads->DisplayAds($Style);</li>
<li class="style4"> ?></li>
</ol>
<p><br />
<strong> </strong><span class="style4"><strong> Line 2 :</strong> Includes the class to this script
<strong><br />
Line 3 :</strong> Determine the path of the PHPADSNEW.INC.PHP file <strong><br />
Line 4 :</strong> Assign the Campaign Id to A variable <strong><br />
Line 5 :</strong> Target of the Ads Link is to be set <strong><br />
Line 6 :</strong> Determine the Number of Ads to Display <strong><br />
<strong>Line 7 :</strong> </strong> Determine the style of Display whether Horizontal or Vertical ( ONLY TWO OPTIONS ALLOWED <strong>&nbsp;</strong> and <strong><BR></strong> ) <strong><br />
Line 8 :</strong> Create Object; will call the constructor function
<strong><br />
Line 9 :</strong> Call to the GetBanner Function which will fetch the banner from the PHPAdsNew Database<br />
<strong>Line 10 :</strong> Call to the DisplayAds Function which will Display the Banner </span></p>
<p><span class="style5">NOTE: </span><span class="style4">Please Select the MaxAds, by considering the number of Ads in u r Database. If you have less ADS in Database and select More number of ads to display some time u r result will go wrong. </span></p>
<p class="style4">Active Link: <a href="http://thesociallight.com/testads.php" target="_blank">http://thesociallight.com/testads.php</a></p>
<p class="style4"> </p>
</body>
</html>