<?php require('conn.php'); { $title = $_POST['title']; $tresc = $_POST['tresc']; $zapytanie="INSERT INTO notki (title,tresc,adder) VALUES('$title','$tresc','ghost')"; $zapytanie2="Select max(id) from notki"; $id = $wiersz[0]; } echo { <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>WebNot</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> Notka została dodana </body> </html> } } else{ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>WebNot</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <h1>Dodaj notke</h1> <form action="add.php" method="POST"> <strong>Tytul:</strong><br /> <textarea name="title" type="text" id="input_one" cols="100" rows="1" ></textarea> <br /> <strong>Tresc::</strong><br /> <textarea name="tresc" type="text" cols="100" rows="20" id="input_two"></textarea> <br /> <input type="submit" value="Wyslij Notatke" /> <br /> <img src="http://www.darmowe-liczniki.web-tools.pl/licznik-68-61355-stat.png"/> </form> </body> </html> <?php } ?>
i mam tu fragment
echo { <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>WebNot</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> Notka została dodana </body> </html> }
Lecz nie wyświetla mi tego, jak zrobić żeby wyświetlało?