kod pliku .php wygląda tak:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equive="Content-type" content= "text/html; charset=UTF-8"> <title>Blog - panel administracyjny</title> <link rel="stylesheet" type="text/css" href="admin.css" <script type="text/javascript" src="/ckeditor/ckeditor.js"></script> </head> <body> <?php include('admin-engine.php')?> <div class="kontener"> <div class="gora"> <h1><a href="admin.php">Blog </a></h1> </div> <div class="srodek"> <h4>Aktualne wpisy</h4> <table> <tr> <th>ID</th> <th>Tytuł</th> <th>Wstęp</th> <th>Data</th> <th>Opcje</th> </tr> <?php foreach ($tabela as $rekord): ?> <tr> <td> ?>">Usuń</a> </td> </tr> <?php endforeach ?> </table> <h4>Dodaj nowy wpis</h4> <table> <form action="admin.php" method="POST"> <tr> <td> Tytuł: <input type="text" name= "tytul"> </td> <td> Wstęp: <input type="text" name="wstep"> </td> </tr> <tr> <td colspan = "2"> Treść: <textarea class="ckeditor" name="editor"></textarea> <script> CKEDITOR.replace( "editor"); </script> </td> </tr> <tr> <td> Data:<input type="text" name="data" </td> <td> <input type="submit" name="dodaj" value="Dodaj"> </td> </tr> </form> </table> </div> </div> </body> </html>
jakieś pomysły? rady?
z góry dziękuję za pomoc
