Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. $servername = "xxxx";
  2. $username = "xxxx";
  3. $password = "xxxx";
  4. $dbname = "aroslavv";
  5. // Create connection
  6. $conn = mysqli_connect($servername, $username, $password, $dbname);
  7.  
  8. // Check connection
  9. if (!$conn) {
  10. die("Connection failed: " . mysqli_connect_error());
  11. }
  12. echo "Połączono";
  13.  
  14. $sql_qry="SELECT gracz FROM wplaty";
  15.  
  16. $duration = $connection->query($sql_qry);
  17. while($record = $duration->fetch_array()){
  18. $total = $record['gracz'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement