Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <form method="get">
- <INPUT TYPE = "Text" value="1" NAME = "IDU">
- <INPUT TYPE = "Submit">
- </form>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "perkowich";
- $conn = new mysqli($servername, $username, $password);
- $value = $_POST['IDU'];
- $query = mysqli_query($conn, "SELECT * FROM Delovni_Cas WHERE Zaposleni_ID_Osebe='".$value."'");
- if(mysqli_num_rows($query) > 0){
- echo "Sucess";
- }else{
- echo "Failed";
- }
- $conn->close();
- ?>
- <html>
- <head>
- </head>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement