insert into mysql database table using php

 <?php

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

$conn=mysqli_connect($servername,

$username,$password,$dbname);

$sql="INSERT INTO tbl(id,name)VALUES

(02,'sham')";

mysqli_query($conn,$sql);

mysqli_close($conn);
?>

Comments

Popular posts from this blog