Code for Database Connection confirmation PHP+HTML
<html> <head> <title> web page 2</title> </head> <body> <?php error_reporting(0); $con=mysql_connect("localhost","root",""); if($con){ mysql_select_db('one',$con); echo "connection successfully"; } else{ echo "connection fail"; } $id=$_REQUEST['id']; $name=$_REQUEST['name']; $email=$_REQUEST['email']; $password=$_REQUEST['password']; $query="INSERT INTO `db1`.`one` (`id`, `name`, `email`, `password`) VALUES (NULL, '$name', '$email', '$password'); "; $r = mysql_query($query); if($r) {echo "inserted";} else {echo "error";} ?> </body> </html>
thanks
ReplyDeletejo sir ny bad main slides di han wo b upload kr doooooooooooooooooooooo
ReplyDeleteMein ny wo sub kuch upld kr diya ha jo sir ny provide kiya ha I think k ap theek tarikay say dhoondh nai pa rahay or ur cls work is different
DeleteYar jo sir group main pages upload karte hain wo bhi upload kiya karo
ReplyDeleteJo sir upload krty hein wo tou upload hai zara goor say check kren
DeletePHP-Tutorial(w3schools)
Html tags & index