Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--
- To change this license header, choose License Headers in Project Properties.
- To change this template file, choose Tools | Templates
- and open the template in the editor.
- -->
- <html>
- <head>
- <meta charset="UTF-8">
- <title></title>
- </head>
- <body>
- <?php
- $server="localhost";
- $user = "root";
- $password = "";
- $conn = new mysqli($server,$user,$password);
- if($conn->connect_error)
- {
- die("konekcija neuspela".$conn->connect_error);
- }
- $sql = "CREATE DATABASE IV3";
- if($conn->query($sql)===TRUE)
- {
- echo '<br>Baza je uspesno kreirana';
- }
- else
- {
- echo 'Error!'.$conn->error;
- }
- $conn->close();
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement