kategorideki kod:
<?php
if(! eregi ("index.php", $_SERVER["PHP_SELF"]))
Die("Bu sayfa tek baþýna görüntülenemez..");
$kategori = $_GET["katad"];
if($kategori==""){
header("location:index.php");
}else{
$katekontrol = mysql_query("SELECT * FROM kategoriler WHERE seokategori='$kategori'");
if(mysql_num_rows($katekontrol)<1){
header("location:index.php");
}else{
$katyaz = mysql_fetch_array(mysql_query("SELECT * FROM kategoriler WHERE seokategori='$kategori'"));
$katid = $katyaz["id"];
$katead = $katyaz["kategori"];
$videosor = mysql_query("SELECT * FROM videolar WHERE katid='$katid' Order By id DESC LIMIT $videosayi");
if(mysql_num_rows($videosor)<1){
echo"<div align=\"center\">
<table border=\"0\" width=\"480\" cellspacing=\"1\" cellpadding=\"0\" height=\"68\" bordercolor=\"#6699FF\">
<tr>
<td><center><font size=\"2\" color=\"#0000FF\"><img src=\"imajlar/hata.gif\">Bu kategoriye ait video bulunamadý.</font></center>
</td>
</tr>
</table>";
}
else{
echo"<div align=\"center\">
<table border=\"0\" width=\"482\" height=\"98\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td background=\"imajlar/son-eklenenler.gif\">
<b><font color=\"#800000\"> </font><font color=\"#FF0000\">$katead</font></b></td>
</tr>
</table>
</div>";
echo"<div align=\"center\">
<table border=\"0\" width=\"482\" cellspacing=\"1\" cellpadding=\"0\" background=\"imajlar/cok-izlenen-bg.gif\">
<tr>";
while($videoyaz = mysql_fetch_array($videosor)){
$videoadi = $videoyaz["adi"];
$seovideo = $videoyaz["seoadi"];
$hit = $videoyaz["izlenme"];
$resim = $videoyaz["resim"];
echo"
<td><div align=\"center\">
<div align=\"center\">
<table border=\"0\" width=\"140\" height=\"160\"cellspacing=\"0\" cellpadding=\"0\">
<tr valign=\"top\">
<td height=\"111\">
<p align=\"center\">
<a href=\"video-$seovideo.html\"><img alt=\"$videoadi\" border=\"0\" src=\"$resim\" width=\"140\" height=\"111\"></a></span></td>
</tr>
<tr valign=\"top\">
<td height=\"20\"><span class=\"linkler\"><font size=\"2\"><a title=\"$videoadi\" href=\"video-$seovideo.html\">$videoadi</a></span> </font></td>
</tr>
<tr>
<td><font size=\"2\" color='ffffff'>Ýzlenme : $hit</font></td>
</tr>
</table>
</div>
</div></td>";
$x=$x+1;
if($x==3){
echo"<tr></tr>";
$x=0;
}
}
echo"
</tr>
</table></div>";
echo"<div align=\"center\">
<table border=\"0\" width=\"482\" height=\"29\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td background=\"imajlar/son-eklenen-alt.gif\"> </td>
</tr>
</table>
</div>";
}
}
}
?>