Create New Database in My Sql using PHP

Create New Database in My Sql using PHP:

<?php
$sql = "CREATE database sexybabe_db";
$connection = mysql_connect("localhost","root","root");
$query = mysql_query ($sql, $connection) or die(mysql_error());
echo "db created";
?>

No comments:

Post a Comment