session_start(); include "lip/connect/connect.php"; include "module/functionGet.php"; $page=$_REQUEST['page']; $tag=$_REQUEST['tag']; if($page==""){$page=1;}; $getpage=mysql_num_rows(mysql_query("select * from gallery")); $numrow=$getpage/9; $introw=ceil($numrow); function GetGallGall() { $news=""; $n=1; $sql1="select * from gallery order by id desc"; $qry=mysql_query($sql1); while($fet=mysql_fetch_array($qry)) { $news[$n][1]=$fet['id']; $news[$n][2]=$fet['images']; $news[$n][3]=$fet['date']; $n=$n+1; } return $news; } $numpage=GetGallGall(); ?>