-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconn.php
33 lines (17 loc) · 785 Bytes
/
conn.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
//mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$con = mysqli_connect('localhost','root');
mysqli_select_db($con,'form-data');
/*$mysqli = new mysqli("localhost","root"," ","form-data");
if ($mysqli -> connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
exit();
}
if (!$mysqli -> query("INSERT INTO `form`(`name`, `gender`,`age`,`mobile`,`father`,`mother`,`contact`,`address`,`college`,`experience`,`skills`) VALUES ( '$name', '$gender','$age','$mobile','$father','$mother','$contact','$address','$college','$experience','$skills')")) {
echo("Error description: " . $mysqli -> error);
}
$mysqli -> close();*/
//$sql = "SELECT * FROM form";
//$result = mysqli_query($db, $sql) ;
//die( mysqli_error($form-data));
?>