Tak przesyłam oto cały kod :
if (isset($_GET['step']) && $_GET['step'] == 'ogloszenie') {
if (isset($_POST['add'])) {
if (!empty($_POST['text'])) {
$_POST['text'] = nl2br($_POST['text']);
echo '<br><br><center> <font color=green>Ogłoszenie Dodane</font></center>'; }
else echo '<br><br><center> <font color=red>Wypełnij Pola</font></center>'; }
<br><br>
<form method="post" action="admins.php?step=ogloszenie#add">
Dodaj Ogłoszenie:<br /><br />
<table>
<tr><td> Tekst: <textarea name="text" rows="15" cols="60" tabindex="3"></textarea></td></tr>
<tr><td> <input type="submit" name="add" value="Dodaj"></td></tr>
</table>';
}
Błąd:
You have an error in your SQL syntax
; check the manual that corresponds to your
MySQL server version
for the right syntax to use near
'' at line
1