Mohon dibantu, ada yang bisa memperbaiki script saya ini. saya bermaksud untuk menampilkan kategori yang berelasi ditabel topik. tapi saya tidak tau script ya, saya sudah coba menggunakan beberapa script yang yang dapat tapi tidak berhasil juga.
<?php
error_reporting(0);
include 'koneksi.php';
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Forum Diskusi</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom -->
<link href="css/custom.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- fonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="font-awesome-4.0.3/css/font-awesome.min.css">
<!-- CSS STYLE-->
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<!-- SLIDER REVOLUTION 4.x CSS SETTINGS -->
<link rel="stylesheet" type="text/css" href="rs-plugin/css/settings.css" media="screen" />
</head>
<body>
<div class="container-fluid">
<?php include 'header.php'; ?>
<section class="content">
<div class="container">
<br>
</div>
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-8">
<div class="post">
<form action="aksi_tambah_diskusi.php" class="form newtopic" method="post">
<div class="postinfotop">
<h2>Tambah Diskusi</h2>
</div>
<!-- acc section -->
<div class="accsection">
<div class="acccap">
<div class="userinfo pull-left"> </div>
<div class="clearfix"></div>
</div>
<div class="topwrap">
<div class="userinfo pull-left"> </div>
<div class="posttext pull-left">
<div class="row">
<div class="col-lg-4 col-md-6">
Topik
</div>
<div class="col-lg-8 col-md-6">
<select name="topik" id="topik" class="form-control" >
<option value="" disabled selected>Pilih Topik</option>
<?php
$kueri_comt = mysql_query("select * from topik");
while($comt = mysql_fetch_array($kueri_comt)){
?>
<option value="<?php echo $comt[id_topik] ?>"><?php echo $comt[judul_topik] ?></option>
<?php }?>
</select>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-6">
Kategori
</div>
<div class="col-lg-8 col-md-6">
<select name="kategori" id="kategori" class="form-control" >
<option value="" disabled selected>Pilih Kategori</option>
<?php
$kueri_comk = mysql_query("select * from kategori");
while($comk = mysql_fetch_array($kueri_comk)){
?>
<option value="<?php echo $comk[id_kategori] ?>"><?php echo $comk[nama_kategori] ?></option>
<?php }?>
</select>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-6">
Judul Diskusi
</div>
<div class="col-lg-8 col-md-6">
<input type="text" name="judul" placeholder="judul_diskusi" class="form-control" />
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-6">
Isi Diskusi
</div>
<div class="col-lg-8 col-md-6">
<textarea type="text" placeholder="Isi Diskusi" class="form-control" id="textarea" name="isi" /></textarea>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div><!-- acc section END -->
<div class="postinfobot">
<div class="notechbox pull-left">
</div>
<div class="pull-left lblfch">
</div>
<div class="pull-right postreply">
<div class="pull-left"><button type="submit" class="btn btn-primary">Simpan</button></div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</form>
</div>
</div>
<div class="col-lg-4 col-md-4">
<?php include 'sidebar.php' ?>
</div>
</div>
</div>
</section>
<?php include 'footer.php' ?>
</div>
<!-- get jQuery from the google apis -->
<script type="text/javascript" src="js/jquery.js"></script>
<!-- SLIDER REVOLUTION 4.x SCRIPTS -->
<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.plugins.min.js"></script>
<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- LOOK THE DOCUMENTATION FOR MORE INFORMATIONS -->
<script type="text/javascript">
var revapi;
jQuery(document).ready(function() {
"use strict";
revapi = jQuery('.tp-banner').revolution(
{
delay: 15000,
startwidth: 1200,
startheight: 278,
hideThumbs: 10,
fullWidth: "on"
});
}); //ready
</script>
<!-- END REVOLUTION SLIDER -->
</body>
</html>