Parašė SysRq· 2012 Kov. 29 17:03:16
<?php
$filmai = dbarray(dbquery("SELECT * FROM `".$db_prefix."filmai` WHERE `filmai_id`='".$_GET['readmore']."'"));
$kat = $filmai['filmai_kat'];
$filmaic = dbarray(dbquery("SELECT * FROM `".$db_prefix."filmai_kat` WHERE `filmai_kat_id`='".$kat."'"));
$katas = $filmaic['filmai_kat_pav'];
$rodyti = "6";
$simboliai = "17";
$sqla = dbquery("SELECT * FROM ".$db_prefix."filmai WHERE filmai_kat='".$kat."' ORDER BY RAND() LIMIT ".$rodyti."");
echo"<br/><hr/>";
echo"<span style='font-size: 11px'>Panašūs filmai:</span>";
echo"<center>";
echo"<table>
<tr>";
while($data=dbarray($sqla)){
echo"<td >";
echo "
<td width='100'>
<a href='filmai.php?filmas_id=".$data['filmai_id']."'><img src='".$data['filmai_img']."' width='125' height='190'/></a>
</td>";
echo "</td>\n" ;
}
echo "</tr>\n</table>\n";
?>