create table in mysql using php

 <?php

$servername="localhost";
$username="root";
$password="";
$dbname="shrisha";

$conn=mysqli_connect($servername,

$username,$password,$dbname);

$sql="CREATE TABLE tbl(id INT(2) PRIMARY

KEY,name VARCHAR(10))";

mysqli_query($conn,$sql);

mysqli_close($conn);

?>

Comments

Popular posts from this blog