"; $ind= "<::: Indietro ::"; function big($f) { if( strpos($f,'/')) { $prep1 = substr($f, strrpos($f, '/') ); $prep = left($f,(strlen($f) - strlen($prep1)) ); $big = $prep ."/big".$prep1; } return $big; } include("Connections/dbconn.inc"); //set array variable $simg = array(); $tid = array(); $sna = array(); @$cId = @$_GET["cId"]; // Set Default collection if(@$cId < 1) @$cId=8; // build Scarpe in the group $table_name = "t_scarpe, t_collezioni WHERE FK_Collezione = t_collezioni.id "; @$flt = ""; if(@$cId) @$flt = " and FK_Collezione = " . @$cId ; // LIMIT 0 , 9 // LIMIT 9 , 18 // LIMIT 18 , 27 $l=@$_POST["l"]; $r=@$_POST["r"]; if(@$_POST["d"] =="f") { $l= $l + 9; $r= $r + 9; } if(@$_POST["d"] =="b") { $l= $l - 9; $r= $r - 9; } if($l< 0) { $l=0; $r=9; } if(isset($l)) { $q1 = 'Select t_scarpe.*, t_collezioni.titoloimg from ' .$table_name . @$flt.' order by POS LIMIT '.$l.' , '.$r; $res1 = mysql_query($q1); $num_rows = mysql_num_rows($res1); if($num_rows== 0) { $l=0; $r=9; } //echo "
N rows is " . $num_rows . "
"; } else { $l=0; $r=9; } $query = 'Select t_scarpe.*, t_collezioni.titoloimg from ' .$table_name . @$flt.' order by POS LIMIT '.$l.' , '.$r; $bl=$l; $br=$r; $res = mysql_query( $query ); @$Sid = @$_POST['Sid']; $i=1; while ($val = mysql_fetch_array($res)) { $tid[$i] = $val["id"]; $simg[$i] = $val["Scarpa_Foto"]; $sna[$i] = $val["NomeScarpa_it"]; $i++; $titolo = $val["titoloimg"]."_".$lng.".gif"; } // just in case ... $z = 1; while ($z <= 10) { $tid[$i] = 0; $simg[$i] = "img/blackbox.gif"; $sna[$i] = " "; $z++; $i++; } ?>

<?echo($clik);?> <?echo($clik);?> <?echo($clik);?>
<?echo($clik);?> <?echo($clik);?> <?echo($clik);?>
<?echo($clik);?> <?echo($clik);?> <?echo($clik);?>
<?echo($ind);?> <?echo($av);?>