Insert Data into Database Table in MySql using PHP:
<?php
$con = mysql_connect(“localhost”,”root”,”root”);
mysql_select_db(“db_name”, $con);
mysql_query(“INSERT INTO Persons (FirstName, LastName, Age)
VALUES (‘Angry’, ‘Ashu’, ’35’)”);
<?php
$con = mysql_connect(“localhost”,”root”,”root”);
mysql_select_db(“db_name”, $con);
mysql_query(“INSERT INTO Persons (FirstName, LastName, Age)
VALUES (‘Angry’, ‘Ashu’, ’35’)”);
mysql_query(“
INSERT INTO Persons (FirstName, LastName, Age)
VALUES (‘Adam’, ‘Cramp’, ’33’)
“);
mysql_close($con);
?>