Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ob_start ();
- if(!isset($_SESSION["kullanici"])){
- header("location:/index.php");
- }else{
- include ("baglan.php");
- }
- ?>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>sayfa.php</title>
- </head>
- <body>
- <?php
- $sorgu=mysql_query ("SELECT * FROM sayfalar ORDER BY id DESC");
- echo "<form id=\"sayfa\" name=\"sayfa\" method=\"post\" action=\"kayit.php\">
- <table align=\"center\" width=\"250\" cellspacing=\"1\" cellpadding=\"1\" border=\"1\" bordercolor=\"pink\">
- <tr>
- <td>SAYFA ADI</td>
- <td>İŞLEM</td>
- </tr>
- <tr>
- <td><input type=\"text\" name=\"baslik\" /></td>
- <td><input name=\"sayfa_ekle\" type=\"submit\" id=\"ekle\" value=\"ekle\" /></td>
- </tr>";
- while ($verigetir=mysql_fetch_array ($sorgu)) {
- $id=$verigetir['id'];
- $baslik=$verigetir['baslik'];
- echo " <tr>
- <td>$baslik</td>
- <td><a href=\"kayit.php?action=sil&id=".$id."\">SİL</a></td>
- </tr>";
- }
- echo"</table>
- </form>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement