Advertisement
Guest User

php

a guest
Feb 17th, 2016
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "manuel";
  4. $password = "pape10";
  5. $dbname = "werist.online";
  6. $url = "test123";
  7. $status = "ONTHELINE";
  8. $privekey = "45edzuwQJUFHBSRDGHGVVGIOWEFV";
  9. $adminlvl = "0";
  10.  
  11. $conn = mysqli_connect($servername, $username, $password, $dbname);
  12. if (!$conn) {
  13. die("Connection failed: " . mysqli_connect_error());
  14. echo "failed";
  15. echo "Connection failed: " . mysqli_connect_error();
  16. }
  17. $result = mysqli_query("SELECT url FROM users WHERE PrivKey ='45edzuwQJUFHBSRDGHGVVGIOWEFV'");
  18. echo $result;
  19. while ($row = mysqli_fetch_array($result))
  20. {
  21. $text = $row['u'];
  22. }
  23. echo $row;
  24. echo $text;
  25. echo "5test";
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement