<? // ile ma być wyświetlanych rekordów na stronie function add_smie() { global $PHP_SELF, $nick, $action, $id, $nick, $access, $fi_tbl, $color, $acc, $op, $ocena, $glosow, $goto; $query = "SELECT COUNT(*) FROM $fi_tbl ORDER BY id DESC"; $query = "SELECT * FROM $fi_tbl ORDER BY date ASC LIMIT ".mysql_escape_string((int)$_GET['porcja']*ILOSC_WYNIKOW_NA_STRONIE).",".ILOSC_WYNIKOW_NA_STRONIE; $id = $r['id']; $title = $r['title']; $author = $r['author']; $date = $r['date']; $odslon = $r['opened']; $comment = $r['comments']; $opis = $r['opis']; $glosow= $r['glosow']; $ocena = $r['ocena']; if(is_login()=='yes') { $link_a = '<a href="admin.php?op=inne&cmd=edit&id='.$id.'&goto=filmy_inne.php" title="edit" class="t_main">E</a>'; $link_b = '<a href="admin.php?op=inne&cmd=del&id='.$id.'&goto=filmy_inne.php" title="delete" class="t_main">D</a>'; $title = $title.' <b>···</b> (<b> '.$link_a.'</b> | <b>'.$link_b.' </b>)'; } echo'<br><table align="center" bgcolor="#FFC891" width="100%" cellspacing="1" cellpadding="0" border="0"> <tr><td><table align="center" width="100%" cellspacing="0" cellpadding="2" border="0" bgcolor="#FFC891"> <tr><td><table align="center" bgcolor="#F10909" width="100%" cellspacing="1" cellpadding="0" border="0"> <tr><td><table align="center" bgcolor="#F7C30B" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td><table align="center" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td width="100%"><a href="'.$PHP_SELF.'?cmd=click&id='.$id.'"><font size="1"><b>'.$title.'</b></font></a> </td></tr></table></td></tr></table></td></tr></table> <table><tr><td width="10%" align="left"><font size="1"><b><img src="filmy_inne/'.$id.'.jpg" width=80 height="80"><td width="100%" align="left"><font size="1">Opis: </b>'.$opis.'</font></td></tr></table> <tr><td><table align="center" bgcolor="#F10909" width="100%" cellspacing="1" cellpadding="0" border="0"> <tr><td><table align="center" bgcolor="#F7C30B" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td><table align="center" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td width="100%" align="right"><font size="1"><b>odsłon:</b> '.$odslon.' <a href="comment.php?what=fi&id='.$id.'"><b>komentarze:</b> '.$comment.'</a> <b>głosów:</b> '.$glosow.' <b>ocena:</b> '.$ocena.' <br></font> </td></tr></table></td></tr></table></td></tr></table> </td></tr></table></td></tr></table>'; } if($_GET['porcja']>0){ } } if($_GET['porcja']<floor($iloscWpisow/ILOSC_WYNIKOW_NA_STRONIE)){ } } ?>

poprawiam
ps: widze ze jednak duzo nie probowales

---
nospor