usun_newsa.php
Uporządkuj wiadomości według: <a href=\"usun_newsa.php?orderby=date\">dat</a>, <a href=\"usun_newsa.php?orderby=news_id\">id</a>, <a href=\"usun_newsa.php?orderby=heading\">nagłówków</a> lub <a href=\"usun_newsa.php?orderby=author\">autorów</a>.<BR><BR> <TABLE BORDERcolor=\"#000000\" border=\"1\" CELLSPACING=0 CELLPADDING=2 WIDTH=\"450\" class=\"ramka\"> <?php if ($orderby == 'date'): $sql = \"select * from news order by 'date'\"; elseif ($orderby == 'news_id'): $sql = \"select * from news order by 'news_id'\"; elseif ($orderby == 'author'): $sql = \"select * from news order by 'author_name'\"; elseif ($orderby == 'heading'): $sql = \"select * from news order by 'heading'\"; endif; else: $sql = \"select * from news order by 'news_id'\"; endif; printf(\"<font color='red'>%s</font> - %s</td></tr>n\", $row[\"news_id\"], $row[\"heading\"]); printf(\"<td><span class='autor'>Autor: <a href=\"mailto:%s\">%s</a></span>n\", $row[\"author_email\"], $row[\"author_name\"]); } ?> </table>
problem jest taki, że nie wiem w jaki sposób można przy każdym tytule newsa umieścić button USUŃ Newsa i po kliknięciu na ten przycisk usuwało by nam dokładnie ten news, przy którym jest przycisk.
DZieki za pomoc...