In order to connect your program with DB you need one database and table in your Server
1. Simple code without Form
<?php
$con=mysql_connect("localhost","root","root");
mysql_select_db("SNIT",$con);
mysql_query("insert into student values('ARJUN',108,100)");
?>
Save this file as save.php and execute the program .
2. Simple Code withForm
Will be updated Soon.
1. Simple code without Form
<?php
$con=mysql_connect("localhost","root","root");
mysql_select_db("SNIT",$con);
mysql_query("insert into student values('ARJUN',108,100)");
?>
Save this file as save.php and execute the program .
2. Simple Code withForm
Will be updated Soon.
No comments:
Post a Comment