Mam błąd nie zapisuje do bazy danych!!!
Oto Kod:
<?php
require_once ('szkielet.php');
?>
<center>
<?
$user = user::getData('', '');
$errors = '';
//formularz
?>
<form method="post" action="">
<input type="hidden" name="od" value="'.$user['login'].'" />
<label for="pass">Do kogo wyslac wiadomosc:</label>
<input maxlength="32" type="text" name="do" id="do" />
<label for="pass_again">Temat:</label>
<input maxlength="32" type="text" name="tytul" id="tytul" />
<label for="email">Tresc:</label>
<textarea name="wiadomosc" cols="17" rows="6"></textarea><br>
<input type="hidden" name="stan" value="nie_odebrany" />
<input type="hidden" name="send" value="1" />
<input type="submit" value="Wyslij" />
</form>
</center>
<?php
if ($_POST['send'] == 1) {
if ($errors != '') {
echo '<center><font color="red"> Wystapil Blad!</font></center>';
}
else{
mysql_query("INSERT INTO wiadomosci (od, do, tytul, wiadomosc, stan) VALUES('$od','$do','$temat', '$tresc', '$stan');") or
die('BŁĄD:'.mysql_error()); echo '<center><font color="green">Wiadomosc wyslana poprawnie!</font></center>'; }
}
require_once ('stopka.php');
Nic nie wyświetla - żadnego błędu ale do bazy nie dodaje !
Proszę o pomoc!