Untitled
raw download clone
TEXT
views 37
,
size 1497 b
<?php
	
	include"layout/header.php";
	$id = $_GET['id'];
	
	$query = mysqli_query($con, "select kategori.*, berita.* from berita left join kategori on berita.id_kategori = kategori.id_kategori where berita.id_berita = '$id'");
	$data = mysqli_fetch_assoc($query);
	
?>
<div class="row">
	<div class="col-9">
		<div>
			<img src="upload/<?=$data['gambar_berita'];?>" style="width:400px;height:200px">
		</div>
		<div>
			<p>Kategori : <a href ="kategori.php?id=<?=$data['id_kategori'];?>"><?=$data['nama_kategori'];?></a></p>
			<p>Rilis Berita : <?=$data['tanggal_berita'];?></p>
		</div>
		<div>
			<p><?=$data['isi_berita'];?></p>
		</div>
	</div>
	<div class="col-3">
		<div class="sidebar">
			<div class="terkait">
				<div class="image">
					<img src="upload/">
				</div>
				<div class="atribute">
					<h5>Kategori</h5>
					<p>Kategori</p>
					<a href="#" class="btn">LIHAT</a>	
				</div>
			</div>
		</div>	
		<div class="sidebar">
			<div class="terkait">
				<div class="image">
					<img src="upload/">
				</div>
				<div class="atribute">
					<h5>Kategori</h5>
					<p>Kategori</p>
					<a href="#" class="btn">LIHAT</a>	
				</div>
			</div>
		</div>
		<div class="sidebar">
			<div class="terkait">
				<div class="image">
					<img src="upload/">
				</div>
				<div class="atribute">
					<h5>Kategori</h5>
					<p>Kategori</p>
					<a href="#" class="btn">LIHAT</a>	
				</div>
			</div>
		</div>	
	</div>
</div>
close fullscreen
Login or Register to edit or fork this paste. It's free.