SHARE
TWEET

Untitled

a guest Nov 13th, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.  
  4. $dbServer = 'localhost';
  5. $dbUser = 'root';
  6. $dbPassword = '';
  7.  
  8. $connection = new mysqli($dbServer, $dbUser, $dbPassword);
  9.  
  10. $sql = "CREATE DATABASE klient;";
  11.  
  12. if($connection ->query($sql) === TRUE){
  13.     echo "Utworzono baze";
  14. }
  15.  
  16.     else { echo "błąd".$connection->error ;
  17. }
  18. $connection->close();
  19. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top