w innych czesciach strony dziala (pobieranie wynikow z bazuy i pokazywanie obrakzow podzielone na storny w galeri dziala i w administracji tez)
a tu teraz przy newsach mi odwakla blad
i nie wiem gdzie jest
moze wy cos zobaczycie
zamieszczam caly plik news.php
<?php include("core/sql.php"); include("core/meta.php"); include("themes/green/code.php"); top(); { $id = $_GET['id']; { $id = $info['id']; $autor = $info['author']; $tresc = $info['text']; $data = $info['data']; $tytul = $info['title']; } echo' <table width="555px" height="43px" align="center" cellpadding="0" cellspacing="0" class="news"> <tr><td class="title" valign="top">'.$tytul.'</td></tr> <tr><td valign="top"> <table cellpadding="0" cellspacing="0" width="100%" valign="top"> <tr> <td class="info" valign="top">Doda³: '.$autor.' Data: '.$data.'</td> '; if($_SESSION['admin']['news'] > 0) { echo'<td class="adm" valign="top"><a href="Admin-news-edit-'.$id.'">[E]</a> <a href="Admin-news-delete-'.$id.'"></a></td>'; } echo' <td class="info" align="right" style="padding-right: 3px;" valign="top"><a href="Aktualnosci">Powrót</a></td> </tr> </table> </td></tr> </table> <table width="553px" align="center" cellpadding="0" cellspacing="0"> <tr><td class="text">'.$tresc.'</td></tr> <tr><td width="553px" height="5px"></td></tr> <tr><td width="553px" class="text"> <hr class="sel"> <h3><b>Komentarze:</b> '; $c = "align=center"; $pnum = 1; for($i=1;$i <= $num_pages;$i++) { } $pdo = $pnum*$page; $pod = $pdo-$pnum; { $id = $info['id']; $author = $info['author']; $data = $info['data']; $ip = $info['ip']; $text = $info['tresc']; echo' <table class="border" align="center" cellpadding="1" cellspacing="1" width="100%"> <tr><td class="td2" style="padding-left:2px;"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td class="td2"><b>'.$author.'<font size="1">|</font></b> <td class="td2" align="right"><b>'.$data.'</b></td> </tr> </table> </td></tr> <tr><td class="td1">'.$text.'</td></tr> '; if($_SESSION['admin']['news'] > 0) { echo' <tr><td class="td2"><b> <a href="Admin-newsy-komentarze-usun-'.$id.'"> <font color="white"><b>[Usuñ]</b></font></a> <font size="1px">|</font> IP: '.$ip.' </b></td></tr>'; } echo' </table><br> '; } echo' <hr class="sel"> <h4><b>Dodaj komentarz:</b></h4> '; if($_POST['send']) { $autor = $_POST['autor']; $tresc = $_POST['tresc']; $ip = $_SERVER['REMOTE_ADDR']; mysql_query("INSERT INTO comments(author, tresc, data, ip, news)VALUES('$autor', '$tresc', '$data', '$ip', '$id')"); } $ip = $_SERVER['REMOTE_ADDR']; if($check > 0) { echo'<center><b> Twoje IP jest na li¶cie zablokowanych <br> Nie mo¿esz dodawaæ komentarzy </b></center>'; } else { echo' <form action="'.$id.','.$page.',News" method="post" name="comments"> <input type="hidden" name="id" value="'.$id.'"> <input type="hidden" name="send" value="send"> <table valign="top" align="center"> <tr><td class="text" valign="top">Autor:</td><td valign="top"><input type="text" name="autor" class="input" style="width:281px;"></td></tr> <tr><td class="text" valign="top">Tre¶æ:</td><td valign="top"><textarea class="input" name="tresc" rows="7" cols="50"></textarea></td></tr> <tr><td class="text" valign="top">BBCode:</td><td class="text"> '; ?> <span class="input" style="cursor:pointer;" onclick="document.comments.tresc.value+=' '"><b>[B]</b></span> <span class="input" style="cursor:pointer;" onclick="document.comments.tresc.value+=' '"><b>[I]</b></span> <span class="input" style="cursor:pointer;" onclick="document.comments.tresc.value+='[u] '"><b>[U]</b></span> <span class="input" style="cursor:pointer;" onclick="document.comments.tresc.value+=''"><b>[IMG]</b></span> <span class="input" style="cursor:pointer;" onclick="document.comments.tresc.value+=' '"><b>[COLOR]</b></span> <? echo' </td></tr> <tr><td align="center" colspan="2"><input type="submit" class="buttons" value="Dodaj komentarz!"></td></tr> </table> </form> '; } } else { } bottom(); ?>