Advertisement
Guest User

Untitled

a guest
Nov 6th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <html>
  2. <head>
  3. <form method="get">
  4. <INPUT TYPE = "Text" value="1" NAME = "IDU">
  5. <INPUT TYPE = "Submit">
  6. </form>
  7. <?php
  8. $servername = "localhost";
  9. $username = "root";
  10. $password = "perkowich";
  11. $conn = new mysqli($servername, $username, $password);
  12. $value = $_POST['IDU'];
  13. $query = mysqli_query($conn, "SELECT * FROM Delovni_Cas WHERE Zaposleni_ID_Osebe='".$value."'");
  14. if(mysqli_num_rows($query) > 0){
  15. echo "Sucess";
  16. }else{
  17. echo "Failed";
  18. }
  19. $conn->close();
  20. ?>
  21. <html>
  22. <head>
  23. </head>
  24. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement