Location: PHPKode > projects > MythPHP > MythPHPv1.0/www/bbkat.php
<?php include 'header.php';
$kategoribil = $_POST['bbkategori'];
function guvenlik($suz) {
$sansurle = array('CREATE','DELETE','SELECT','FROM','LIMIT','TABLE','MYISAM','*','ORDER','ASC','JOIN','BINARY','WHERE','<','>');
$editle = array('---','---','---','---','---','---','---','---','---','---','---','---','---','---','---');
$safhal = str_replace($sansurle,$editle,$suz);


if(empty($safhal)){
@mysql_close();
}

return $safhal;

}
$kat = guvenlik($kategoribil);
echo "<center><b>\"$kat\" Kategorisindeki Bilgi Bankasý Dökümanlarý Listeleniyor.</b></center>";
 ?>
		<div id="tabledata" class="section">
			<h2 class="ico_mug">Bilgi Bankasý</h2>
		<table id="table">
			<thead>
			<tr>
				<th>Ýçerik No.</th>
				<th>Kategori</th>
				<th>Baþlýk</th>
			</tr>
			</thead>
			<tbody>
<?php
include 'ayar.php';

$listeisl = mysql_query("SELECT * FROM bilgibankasiicerik WHERE kategori='$kat'");
while($listele = mysql_fetch_array($listeisl))
{
$yid = $listele['id'];
$bbaslik = $listele['baslik'];
$bkat = $listele['kategori'];

			echo "<tr>
				<td class=\"table_date\">$yid</td>
				<td class=\"table_title\"><span class=\"approved\">$bkat</span></td>
				<td>$bbaslik</td> 
				</tr>";
}
?>
			</tbody>
		</table>
		</div> 
		
<?php include 'footer.php'; ?>
Return current item: MythPHP