In This Article, will explain creating a database dynamically into MySQL Database in PHP






How To Create Database Dynamically Into MySQL (phpMyAdmin)

Using PHP Code


Enter Database Name :
<?php if(isset($_POST["submit"])) { $conn=mysqli_connect("localhost","root",""); if(!$conn) { die("Connection Failed".mysqli_connect_errno()); } $sqlquery="create database ".$_POST["dbname"]; if(mysqli_query($conn,$sqlquery)) { echo"database Created Successfully .. !"; } else { echo "Already database is exists " .mysqli_error($conn); } mysqli_close($conn); } ?>


Free Top Udemy Courses

Read Complete Article → sadfasfasfd asdfasdfsa asfasfd asdfasdf asdfasfdsa asdfasdf