$hlm_tot){ $hlm = $hlm_tot; } $ord = ($hlm - 1) * $judul_per_hlm; if ($ord < 0 ) $ord=0; $mysql = "select id,ringkas,nama,create_date,alias,secid,gambar,gambar1 from tbl_$kanal where published='1' $where order by id desc limit $ord, $judul_per_hlm"; $hasil = sql( $mysql); $datadetail = array(); $i = 0; while ($data = sql_fetch_data($hasil)) { $tanggal = $data['create_date']; $nama = $data['nama']; $id = $data['id']; $ringkas = $data['ringkas']; $alias = $data['alias']; $tanggal = tanggal($tanggal); $gambar = $data['gambar']; $gambar1 = $data['gambar1']; if($i==0){ $gambar= $gambar1; } else { $gambar = $gambar; } if(!empty($gambar)) $gambar = "/gambar/$kanal/$gambar"; else $gambar = ""; $ringkas2 = explode(" ",$ringkas); for($i=0;$i<40;$i++) { $ringkas3 .= "$ringkas2[$i] "; } $link = "$fulldomain/$kanal/read/$id/$alias"; $datadetail[$id] = array("id"=>$id,"no"=>$i,"nama"=>$nama,"ringkas"=>$ringkas3,"tanggal"=>$tanggal,"alias"=>$alias,"link"=>$link,"gambar"=>$gambar); $i++; unset($ringkas3); } sql_free_result($hasil); $tpl->assign("datadetail",$datadetail); //Paging $batas_page =5; $stringpage = array(); $pageid =0; if ($hlm > 1){ $prev = $hlm - 1; $stringpage[$pageid] = array("nama"=>"<<","link"=>"$domainfull/$kanal/$aksi/1"); $pageid++; $stringpage[$pageid] = array("nama"=>"<","link"=>"$domainfull/$kanal/$aksi/$prev"); } else { $stringpage[$pageid] = array("nama"=>"<<","link"=>""); $pageid++; $stringpage[$pageid] = array("nama"=>"<","link"=>""); } $hlm2 = $hlm - (ceil($batas_page/2)); $hlm4= $hlm+(ceil($batas_page/2)); if($hlm2 <= 0 ) $hlm3=1; else $hlm3 = $hlm2; $pageid++; for ($ii=$hlm3; $ii <= $hlm_tot and $ii<=$hlm4; $ii++){ if ($ii==$hlm){ $stringpage[$pageid] = array("nama"=>"$ii","link"=>""); }else{ $stringpage[$pageid] = array("nama"=>"$ii","link"=>"$domainfull/$kanal/$aksi/$ii"); } $pageid++; } if ($hlm < $hlm_tot){ $next = $hlm + 1; $stringpage[$pageid] = array("nama"=>">","link"=>"$domainfull/$kanal/$aksi/$next"); $pageid++; $stringpage[$pageid] = array("nama"=>">>","link"=>"$domainfull/$kanal/$aksi/$hlm_tot"); } else { $stringpage[$pageid] = array("nama"=>">","link"=>""); $pageid++; $stringpage[$pageid] = array("nama"=>">>","link"=>""); } $tpl->assign("stringpage",$stringpage); ?> ERROR: select id,ringkas,nama,create_date,alias,gambar from tbl_konsultasi where published='1' order by views desc limit 10 : Table 'pangandaran.tbl_konsultasi' doesn't exist
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /home/pangandaran/www/setingan/web.fungsi.php on line 29

Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in /home/pangandaran/www/setingan/web.fungsi.php on line 39
Konsultasi - Diary Siti Salamah Azzahra
Konsultasi
Cara Berkonsultasi
Untuk mengirimkan pertanyaan dan konsultasi, silahkan kirimkan pertanyaan anda melalui alamat email sitisalamahazzahra@gmail.com.
Terpopuler