Insert data into Mysql Database using PHP.
This program is for insert data into database. Copy and
paste it and do necessary change according to your database setting.
Before Insert operation:-
After Insert operation:-
<?php
$conn=mysql_connect("localhost","root","");
if($conn==NULL)
echo "Database
connection failure";
$db=mysql_select_db("asp",$conn);
if($db==NULL)
echo "Database
selection failure";
$qur="insert into login values('aaa','aaa')";
mysql_query($qur);
?>
No comments:
Post a Comment