Otóż, próbuję dodać parę rekordów do bazy danych poprzez php, ale nie wychodzi mi.Czy mógłby mi ktoś wskazać na czym polega problem ?
Plik config.php jest w 100% sprawny, więc to nie chodzi o niego.
<? include 'config.php'; $tytul = $_POST['tytul']; $tresc = $_POST['tresc'];?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="Description" content=" ------- UZUPELNIC POTEM ------ " /> <meta name="Author" content="" /> <meta name="language" content="pl" /> <title></title> </head> <body> <center> <form action="panel.php" method="post"> Tytuł: <input type="text" name="tytul"/> <br/> Treść: <textarea name="tresc" rows="5" cols="30"></textarea> <br/> hasło administratora: <input type="password" name="pass"/> <br/> <input type="submit" value="dodaj"/> </form> <?php //$dat = date("d.m.Y"); $q = "INSERT INTO news SET tytul = '$tytul', tresc = '$tresc', data = now()"; }else{ } ?> </center> </body> </html>