You are on page 1of 2

<?

php
$get = $_GET[module];

if ($get=="detailberita"){
$berita = mysql_query("select judul from berita where id_berita='$_GET[id]'");
$a = mysql_fetch_array($berita);
echo $a[judul];
}
elseif ($get=="detailvideo"){
$video = mysql_query("select judul from video where id='$_GET[id]'");
$b = mysql_fetch_array($video);
echo $b[judul];
}
elseif ($get=="menu"){
$menu = mysql_query("select judul from mainmenu where id_main='$_GET[id]'");
$c = mysql_fetch_array($menu);
echo $c[judul];
}
elseif ($get=="submenu"){
$judulsub = mysql_query("select judulsub from submenu where
id_sub='$_GET[id]'");
$d = mysql_fetch_array($judulsub);
echo $d[judulsub];
}
elseif ($get=="detailalbum"){
$album = mysql_query("select jdl_album from album where
id_album='$_GET[id]'");
$e = mysql_fetch_array($album);
echo "Album ".$e[jdl_album];
}
elseif ($get=="galeri"){
$galeri = mysql_query("select jdl_gallery from gallery where
id_gallery='$_GET[id]'");
$g = mysql_fetch_array($galeri);
echo $g[jdl_gallery];
}
elseif ($get=="download"){
echo "Baca Buku Perpustakaan";
}
elseif ($get=="detaildownload"){
$download = mysql_query("select judul from download where
id_download='$_GET[id]'");
$h = mysql_fetch_array($download);
echo "Baca ".$h[judul];
}
elseif ($get=="pagedownload"){
$download = mysql_query("select judul from download where
judul_seo='$_GET[seo]'");
$h = mysql_fetch_array($download);
echo "Baca ".$h[judul];
}
elseif ($get=="pagebaca"){
$download = mysql_query("select judul from download where
judul_seo='$_GET[seo]'");
$h = mysql_fetch_array($download);
echo "Buku ".$h[judul];
}
elseif ($get=="produk"){
echo "Produk Bumdes Moopiyohu";
}
elseif ($get=="detailproduk"){
$produk = mysql_query("select nama_produk from produk where id='$_GET[id]'");
$h = mysql_fetch_array($produk);
echo "Jual ".$h[nama_produk];
}
else {
echo "Dinas Perpustakaan dan Kearsipan Kab. Gorontalo";
}
?>

You might also like