This blog is about technical and programming questions and there solutions. I also cover programs that were asked in various interviews, it will help you to crack the coding round of various interviews
Enter First name:<input type ="text" name="First" value ="" placeholder="enter name" ></br>
Enter date of Birth:<input type ="date" name="date" value ="" placeholder="enter date of birth" ></br> Enter Email: <input type ="text" name="email" value ="" placeholder="enter Email" ></br></br>
Enter pass : <input type="password" name="pass" value="" placeholder="enter Pass">
<input type="submit" name ="submit" value ="click here";>
<?php $Name=$_POST['first']; $Date=$_POST['date']; $Email=$_POST['email']; $password=$_POST['pass']; $host='localhost:3306'; $user='root'; /* User name of Localhost*/ $pass=''; /*Password of Localhost*/
$dbname='first'; /*Name of Database created in php My Admin*/ $conn=mysqli_connect($host,$user,$pass,$dbname); if(!$conn) { die ('could not connect :'.mysqli_connect_error()); } echo('connectd successfully <br/>');
No comments:
Post a Comment