napisalem taki kod
<?php $autor_n = $_POST['autor']; $tytul_n = $_POST['tytul']; $link_n = $_POST['link']; $tresc_n = $_POST['tresc']; mysql_query("INSERT INTO 'news' (autor, tytul, link, tresc) VALUES ('".$autor_n."','".$tytul_n."','".$link_n."','".$tresc_n."')"); } else { } } ?> <form action="" method="post"><br> <b>Autor : <input type="text" name="autor" size="18" /> <Br> <b>Tytul: <input type="text" name="tytul" size="18" /> <Br> <b>Link : <input type="text" name="link" size="18" /> <Br> <b>Tresc : <input type="text" name="tresc" size="18" /> <Br> <input type="submit" name="ok" value="Dodaj"> </form>
Wszystko ladnie, pieknie, gdy wypelniam formularz klikam 'ok' pojawia mi sie komunikat ze Dodano tresci do bazy, jednak w bazie pustki, co moge miec zle w tym kodzie