<?
mysql_connect("localhost","root","") or die("connection faild");Connection of the the DB
mysql_select_db("con") or die ("database not avi");Select the Database
$qry = "INSERT INTO data (id,name,venue,date) VALUES (' ','Indai','Delhi','2014-12-10')";
This Query is used to insert the datas in DB
$result = mysql_query($qry);
if($result)
{
echo "submitted";
}
else{
echo "your datas are not submitted Try Afetr Some time!";
echo mysql_error();
}
?>
mysql_connect("localhost","root","") or die("connection faild");Connection of the the DB
mysql_select_db("con") or die ("database not avi");Select the Database
$qry = "INSERT INTO data (id,name,venue,date) VALUES (' ','Indai','Delhi','2014-12-10')";
This Query is used to insert the datas in DB
$result = mysql_query($qry);
if($result)
{
echo "submitted";
}
else{
echo "your datas are not submitted Try Afetr Some time!";
echo mysql_error();
}
?>
No comments