<?php include("baza.php"); include("gora.php"); $przeczytana = 1; $q = mysql_query("SELECT login, od, temat, tresc, przeczytana, date, id FROM wiadomosci WHERE login='$user'"); ?> <b><center>Wiadomości:</center></b> <br> <a href="wiadomosci.php">:: Nowa wiadomość</a><br> :: Kasuj wszystkie wiadomości<br><hr> <?php ?> <table width=100%> <tr bgcolor=#e6e6e6> </tr> </table> <table width=100%> <tr bgcolor=#6e6e6e> <td> </td> </tr> <tr bgcolor=#e6e6e6> <form action="wiadomosci2.php" method="post"> <td><button style="border: 0px; background-color: #e6e6e6;" type="submit" name="przeczytana">przeczytana</button><button style="border: 0px; background-color: #e6e6e6;" type="submit" name="kasuj">kasuj</button></td> </form> </tr> </table> <hr> <?php mysql_fetch_array(mysql_query("DELETE FROM `wiadomosci` WHERE `id`='".$r[6]."'") or die (mysql_error())); } mysql_fetch_array(mysql_query("UPDATE wiadomosci SET przeczytana='".$przeczytana."' WHERE id='".$r[6]."'") or die (mysql_error())); } } include("dol.php"); ?>
Bardzo prosze o pomoc! Pozdrawiam!