include("baglan.php"); include("include/sayfa.php"); if (isset($_POST['kaydet'])){ $db->iInsert('gelen_sorular', $_POST); $id=$db -> insert_id; echo " "; echo '
'; } $st=$_GET["st"]; // Make query if (!$st) $st=0; $st=(int) $st; if (!$adet) $adet=8; $adet=(int) $adet; if ($adet<1) $adet=8; $rec=$db -> row("SELECT count(id) as sayi FROM sorular ".$sql." order by id"); $pg=new page_creator(); $pg->TotalItems=$rec->sayi; $pg->ItemsPerPage=$adet; $pg->PrevNext=true; $pg->FirstLast=true; $pg->TrailingPages=2; $pg->ShowTotalPages=false; $pg->ShowTotalPagesString="Toplam Sayfa Sayisi: "; $pg->ScriptVariable="st"; $pg->Parameters=array('amount'=>$adet); $nav=$pg->Create_Pagelinks(); $rows = $db->rows("select * from sorular order by id desc limit $st,$adet"); if($rows){ foreach($rows as $row){ $sorular.='
'.$row->cvp.'
|