Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- $conn=mysqli_connect("localhost","root","");
- if($conn->connect_error)
- {
- die("Connection Failed".$conn->connect_error);
- }
- echo "Connected successfully<br>";
- $sql="CREATE DATABASE COLLEGE";
- if($conn->query($sql)===TRUE)
- {
- echo"Database created successfully";
- }
- else
- {
- echo"Error Creating Database:".$conn->error;
- }
- $conn->close();
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement