Advertisement
Guest User

Untitled

a guest
Oct 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2. $username = "DBUSER";
  3. $password = "DBPASS";
  4. $database = "DBNAME";
  5. $hostname = "localhost";
  6.  
  7. $dbhandle = mysql_connect($hostname, $username, $password)
  8. or die("Unable to connect to MySQL");
  9. echo "Connected to DB<br>";
  10.  
  11. $selected = mysql_select_db($database, $dbhandle)
  12. or die("Could not select examples");
  13. ?>
  14.  
  15. <?php
  16. $queryallusers = mysql_query("SELECT * FROM users WHERE NOT id='0' AND NOT username='{$loggeduser}' ORDER BY id");
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement