• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

Garden News

» Berita Terkini"; $tampil= mysql_query("SELECT * FROM berita_lama ORDER BY id_berita"); $no=$posisi+1; while($t=mysql_fetch_array($tampil)) { $gambar = $t['foto']; echo "
"; echo "
$t[judul]

"; echo "$t[tanggal].  "; $no++; $kalimat=strtok(nl2br($t['isi_berita'])," "); for ($i=0.5;$i<=22;$i++) { echo ($kalimat); echo (" "); // Spasi antar kalimat $kalimat=strtok(" "); // Potong per kalimat } echo " ... Selengkapnya
"; echo "
"; } } // Detail Berita elseif ($_GET['module']=='detailberita') { $detail=mysql_query("SELECT * FROM berita_lama WHERE id_berita='$_GET[id]'"); $d = mysql_fetch_array($detail); $gambar = $d['foto']; //echo""; echo"

$d[judul]


"; echo""; echo"$d[tanggal].  "; $isi_berita=nl2br($d['isi_berita']); echo "$isi_berita"; echo "
[ Kembali ]"; } ?> 1) { $previous = $halaman-1; echo " << First | < Previous | "; } else { echo "<< First | < Previous | "; } for ($i=1;$i<=$jmlhalaman;$i++) if ($i != $halaman) { echo "$i | "; } else { echo "$i |"; } if ($halaman < $jmlhalaman) { $next = $halaman+1; echo " Next > | Last >> | "; } else { echo "Next > | Last >>"; } //echo "

Total Berita : $jmldata Hasil


"; ?>