Advertisement
Guest User

Untitled

a guest
May 21st, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Delete</title>
  4. </head>
  5. <body>
  6. <?php
  7. $connection= mysqli_connect(“localhost”,”root”,””,”Disneyland”);
  8. $query= “SELECT nome FROM Personaggi ORDER BY nome”;
  9. $result= mysqli_query ($query,$connection);
  10. if ( mysqli_num_rows ($result) != 0)
  11. {
  12. ?>
  13. <form action= “delete.php” method= “GET”><br>
  14. Personaggio da eliminare<br>
  15. <select name=”personaggio”>
  16. <?php
  17. while ($row = msqli_fetch_array ($result))
  18. echo “<option value= \”row[0] \ “>$row[0]</option>”;
  19. ?>
  20. </select><br><br>
  21. <input type= “submit” value = “Elimina”>
  22. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement