forked from yoyoman21/Javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathouroborous.php
More file actions
41 lines (33 loc) · 778 Bytes
/
ouroborous.php
File metadata and controls
41 lines (33 loc) · 778 Bytes
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
34
35
36
37
38
39
40
41
<?php
error_reporting(0);
$servername="localhost";
$username="root";
$password="";
$dbname="website";
$conn=mysqli_connect($servername,$username,$password,$dbname);
if($conn)
{
echo "connection successful";
}
else
{
echo "connection failed :" .mysqli_connect_error();
}
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
$gender=$_POST['gender'];
$email=$_POST['email'];
$countrycode=$_POST['countrycode'];
$number=$_POST['phonenumber'];
$pass=$_POST['password'];
$query="INSERT INTO DATA VALUES ($firstname','$lastname','$gender','$email','$countrycode','$number','$pass')";
$exe=mysqli_query($conn,$query);
if($exe)
{
echo "data entered";
}
else
{
echo "failed";
}
?>