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>
Article writers must remember that even if they are given the freedom to write in any manner that they prefer, they should not allow too much of their creativity, as it is just article rewriting so the article must contain the same message as the original article. See more here article rewriter
ReplyDelete