PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` query("SELECT COUNT(*) FROM musteriler"); $get_total_rows = $results->fetch_row(); //hold total records in variable //break records into pages $total_pages = ceil($get_total_rows[0]/$item_per_page); //get starting position to fetch the records $page_position = (($page_number-1) * $item_per_page); //SQL query that will fetch group of records depending on starting position and item per page. See SQL LIMIT clause $results = $mysqli_conn->query("SELECT ID, Ad_Soyad, firma, Tel, email FROM musteriler Where Ad_Soyad LIKE '$adi' ORDER BY ID DESC LIMIT $page_position, $item_per_page"); //Display records fetched from database. echo ' '; while($row = $results->fetch_assoc()) { $carikim= $row["ID"]; $cariborc = mysql_query("SELECT SUM(borc) as borc FROM carihareket where cariid='$carikim' "); $row5 = mysql_fetch_array($cariborc); $borcu= $row5["borc"]; $carialacak = mysql_query("SELECT SUM(alacak) as alacak FROM carihareket where cariid='$carikim' "); $row2 = mysql_fetch_array($carialacak); $alacak= $row2["alacak"]; $toplayalim = number_format($borcu-$alacak,2, ',', '.'); echo ' '; } echo '
Ad Soyad Firma Telefon E-posta Bakiye
'.$row["ID"].' '.$row["Ad_Soyad"].' '.$row["firma"].' '.$row["Tel"].' '.$row["email"].' '.$toplayalim.'
'; echo '
'; /* We call the pagination function here to generate Pagination link for us. As you can see I have passed several parameters to the function. */ echo paginate_function($item_per_page, $page_number, $get_total_rows[0], $total_pages); echo '
'; } ################ pagination function ######################################### function paginate_function($item_per_page, $current_page, $total_records, $total_pages) { $pagination = ''; if($total_pages > 0 && $total_pages != 1 && $current_page <= $total_pages){ //verify total pages and current page number $pagination .= '
    '; $right_links = $current_page + 4; $previous = $current_page - 3; //previous link $next = $current_page + 1; //next link $first_link = false; //boolean var to decide our first link if($current_page > 1){ $previous_link = ($previous==0)?1:$previous; $pagination .= '
  • «
  • '; //first link $pagination .= '
  • <
  • '; //previous link for($i = ($current_page-2); $i < $current_page; $i++){ //Create left-hand side links if($i > 0){ $pagination .= '
  • '.$i.'
  • '; } } $first_link = false; //set first link to false } if($first_link){ //if current active page is first link $pagination .= '
  • '.$current_page.'
  • '; }elseif($current_page == $total_pages){ //if it's the last active link $pagination .= '
  • '.$current_page.'
  • '; }else{ //regular current link $pagination .= '
  • '.$current_page.'
  • '; } for($i = $current_page+1; $i < $right_links ; $i++){ //create right-hand side links if($i<=$total_pages){ $pagination .= '
  • '.$i.'
  • '; } } if($current_page < $total_pages){ $next_link = ($i > $total_pages)? $total_pages : $i; $pagination .= '
  • >
  • '; //next link $pagination .= '
  • »
  • '; //last link } $pagination .= '
'; } return $pagination; //return pagination links } ?>