Select Menu

Ads

Design

Technology

Circle Gallery

Shooting

Racing

News

Bottom

» »Unlabelled » How to insert datas to mysql using php

<?
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();
}

?>

About dhamodaran

WePress Theme is officially developed by Templatezy Team. We published High quality Blogger Templates with Awesome Design for blogspot lovers.The very first Blogger Templates Company where you will find Responsive Design Templates.
«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply