$page=2;
error_reporting(E_ALL);
//@include_once("../db/dbsit.php");
if (isset($_GET['m'])) $m=$_GET['m']; else $m=NULL;
//$zone_id = $_GET['z'];
//$m=0;
/*
//$key_id = $_GET['k'];
//$client_id = $_GET['c'];
$date_id = $_GET['d']; if(empty($date_id)){$date_id = 1;} //1 = newest //2 = oldest
//get zones -> links
$zone_sql = "SELECT * FROM `zones` LIMIT 0 , 30 ";
$result = mysql_query($zone_sql, $connection) or die($sql);
while ($row = mysql_fetch_array($result)) {
if($row["zid"]==$zone_id){$marker='*';}else{$marker='';}
$zone_list .= ''.$marker.$row["zone"].'
';
}
//set up sql
if($date_id==1){$desc_asc = '`m_date` DESC'; $date_new_marker='*';}
if($date_id==2){$desc_asc = '`m_date` ASC'; $date_old_marker='*';}
if($date_id==3){$desc_asc = 'RAND()'; $date_rand_marker='*';}
$where_claus = 'WHERE 1 ';
if(!empty($zone_id)){$where_claus .= "AND `area` LIKE '%$zone_id%,'";}
//get images
$sql = " SELECT `im_id`,`i_name`,`m_date`
FROM `images`
ORDER BY ASC
LIMIT 0 , 60" ; $debug .= "sql: $sql
";
$result = mysql_query($sql, $connection) or die($sql);
$count2 = count($result);
$num_rows = mysql_num_rows($result);
//$thumbs .= $i_name;
$count = count($i_name);
$string = is_string($thumbs);
$array = is_array($row);
$l_array = is_array($line);
$i = 1; $columns = 12;
$img = "".$img.$url ;
$t_out .= $row["i_name"].".gif\" width=\"50\" height=\"50\" border=\"0\">";
$t_out .= "\n";
//add breaks after each 12 images
$stype = gettype($i/$columns); //returns the type of the result.
if($stype == "integer"){$t_out .= "\n";$t_out .= "
|