Advertisement
Guest User

Untitled

a guest
Nov 15th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2. $server = "localhost";
  3. $user = "root";
  4. $password = "";
  5. $db = "auta";
  6. $conn = new mysqli ($server, $user, $password,$db);
  7.  
  8.  
  9. $sql = "delete from wlasciciel where imie='Piotr'";
  10. $result = $conn->query($sql);
  11.  
  12. if ($result->num_rows > 0) {
  13. while($row = $result->fetch_assoc()) {
  14. echo "Powiodło się";
  15. }
  16. }
  17.  
  18. $conn->close();
  19.  
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement