location.href="index.html"; '; }else{ $referensi = ''; if($_GET["tdkpakai"]) { $kueri = "select row_id, judul from tb_news where row_id='".addslashes(sprintf("%d",$_GET["tdkpakai"]))."'"; $q = $mysqli->query($kueri); if($q->num_rows > 0) { while($r = $q->fetch_row()) { $referensi .= 'Referensi dari : "'.$r[1].'"
'; } } } $list_cari = ""; $banyak_cari=""; $dicari = str_replace("_"," ",$_GET["pencarian"]); $kueri = "insert into tb_news_cari set param='".$dicari."', tgl=Now()"; $q = $mysqli->query($kueri); if($mysqli->affected_rows > 0) { $kueri = "select row_id, judul from tb_news where judul like '%".$dicari."%' or isi like '%".$dicari."%' order by tanggal desc"; $q = $mysqli->query($kueri); if($q->num_rows > 0) { $banyak_cari = $q->num_rows; while($r = $q->fetch_row()) { $list_cari .= '
  • '.$r[1].'
  • '; } } } $judul_html .= $dicari; $isi = '

    Pencarian

    '.$referensi.' Anda melakukan pencarian dengan parameter : '.$dicari.'
    Hasil pencarian : '.$banyak_cari.'

    '; } // ***************************** // ********** TITLE ********** if(strlen($judul_html)==0){ $judul_html = "News"; }else{ $judul_html = "News - ".$judul_html; } // ******************************* // ********** METATAG ********** $meta_isi = ' '; // ***************************** require "templ_link.php"; ?>