// Hack for new Go Daddy hosting $subdirectory = "/_uwphoto.net/"; $root=$_SERVER["DOCUMENT_ROOT"].$subdirectory; require("$root/php/sql.php"); $page_title="Photography by Jim Christensen - Stock Images"; $page_description="Photography by Jim Christensen - Available Stock Images"; require("$root/php/header.php"); // Process the page pointers $query="SELECT * FROM wallpapers, galleries WHERE wallpapers.gallery = galleries.id ORDER BY wallpapers.gallery ASC, wallpapers.id DESC"; $result=mysql_query($query); if(!$result) die("Can't connect to server"); function link_line($page) { global $page_max; // Starting Location $page_start=max($page-4,1); // Ending Location $page_end=min($page_start+10,$page_max); // Show a line for multiple pages echo "
|