Location: PHPKode > scripts > Image Gallery > image-gallery/ExampleGallery.php
<?
	include "ImgGallery.cls.php";
	
	// Host and  Database Connection.
	$Host="localhost";
	$User="root";
	$Password="";
	$DbName="aminul";
	mysql_connect($Host,$User,$Password)or die(mysql_error());
	mysql_select_db($DbName)or die(mysql_error());
	
	$DbTableName="image_gallery";	// Table Name Used
	$DisplayPageNo=1;	// Page number you want to display.
	$NoOfRow=3;			// Number of rows to display
	$NoOfCol=4;			// Number of column to display
	$ImgLoc="Imgs";		// Image folder location from current location.

	// Object instance.
	$Gallery=new ImageGallery($DbTableName,$DisplayPageNo,$NoOfRow,$NoOfCol,$ImgLoc);	

	// Draw Table of Banner including Paging.
	$Gallery->DisplayImageGallery();
	
	// Destroy Object.
	unset($Gallery);
?>
Return current item: Image Gallery