Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2. $con=mysqli_connect("example.com","peter","abc123","my_db");
  3. // Check connection
  4. if (mysqli_connect_errno())
  5. {
  6. echo "Failed to connect to MySQL: " . mysqli_connect_error();
  7. }
  8.  
  9. mysqli_query($con,"DELETE FROM Persons WHERE LastName='Griffin'");
  10.  
  11. mysqli_close($con);
  12. ?>
  13.  
  14. UPDATE Persons
  15. set LastName = ''
  16. WHERE
  17. id = ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement