Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>TEST</title>
- </head>
- <body>
- <h3>DODAJ NEWSA </h3>
- <form name="form1" method="post" action="index.php">
- tytul: <input name="tytul" type="text" size="20"><br />
- tresc: <input name="tresc" type="text" size="20"><br />
- <input value="Dodaj news" type="submit">
- </form>
- </br>
- <a href="index.php">Aelo</a>
- </body>
- </html>
- <?php
- $con = mysqli_connect("localhost","root","","tibia") or die("Wystapil blad" . mysqli_error($con));
- $zapytanie = "INSERT INTO tibia (tytul, tresc) VALUES (id, tytul, tresc)" or die(mysql_error());
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement