Advertisement
Guest User

Untitled

a guest
Aug 19th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <?php
  2. $host =37.139.25.9;
  3. $user =ricky;
  4. $pass =aqepyjy3u;
  5. $db=zadmin_ricky;
  6. $link =mysqli_connect($host,$user,$pass,$db); // check if statement true
  7. $insert=mysqli_query($link,"INSERT INTO 'zadmin_ricky'.'MyTable'
  8. ('firstname','lastname', 'salary', 'dept','doi');
  9. VALUES ('John', 'blah', '4999', 'fag', 'bullshit')");
  10. $iq = mysqli_query($link, 'SELECT * FROM MyTable');
  11. $deleteRecords = mysqli_query($link, "DELETE FROM MyTable WHERE salary = 1000 OR salary > 5000");
  12. $result = mysqli_query($link, "SELECT * FROM MyTable WHERE firstname = 'John' OR salary > 5000");
  13. while ($row = mysqli_fetch_row($result)) {
  14. echo "we found john he is a fag".$row[3];
  15. echo "correct John is a huge homo".$row[1];
  16. echo "test".$row[4];
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement