Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbServer = 'localhost';
- $dbUser = 'root';
- $dbPassword = '';
- $dbName = 'klient';
- $connection = new mysqli($dbServer, $dbUser, $dbPassword, $dbName);
- $sql = "CREATE TABLE users(
- id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
- username VARCHAR(20) NOT NULL,
- email VARCHAR(100) NOT NULL)
- ;";
- if($connection ->query($sql) === TRUE){
- echo "Utworzono tabele";
- }
- else { echo "nie udało się".$connection->error ;
- }
- $connection->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement