Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2.  
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7. <title>TEST</title>
  8. </head>
  9.  
  10. <body>
  11. <h3>DODAJ NEWSA </h3>
  12.  
  13.  
  14. <form name="form1" method="post" action="index.php">
  15.  
  16. tytul: <input name="tytul" type="text" size="20"><br />
  17. tresc: <input name="tresc" type="text" size="20"><br />
  18.  
  19. <input value="Dodaj news" type="submit">
  20. </form>
  21.  
  22.  
  23. </br>
  24. <a href="index.php">Aelo</a>
  25. </body>
  26. </html>
  27.  
  28. <?php
  29.  
  30.  
  31. $con = mysqli_connect("localhost","root","","tibia") or die("Wystapil blad" . mysqli_error($con));
  32.  
  33.  
  34.  
  35.  
  36. $zapytanie = "INSERT INTO tibia (tytul, tresc) VALUES (id, tytul, tresc)" or die(mysql_error());
  37.  
  38.  
  39.  
  40.  
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement