Guest User

Untitled

a guest
Feb 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. include 'password.php';
  2.  
  3. $mysqli = new mysqli('localhost', $login, $password, $databaseName);
  4. $result = $mysqli->query("SELECT * FROM Photo ORDER BY url");
  5. while($array = $result->fetch_assoc() ){
  6. print $array['url'] . ": " . $array['pid']."<br />";
  7. }
  8. $mysqli->close();
Add Comment
Please, Sign In to add comment