You are on page 1of 1

else{

header("location:../signup.php/");
}
$conn=mysqli_connect('localhost','root','');
if(!$conn)
{
echo "not connected to server";
}
if(!mysqli_select_db($conn,'register'))

{
echo "not connected to db";
}

$sql="INSERT INTO datas(fname,lname,email,username,profession,password)


VALUES('$fname','$lname','$email','$usname','$pro','$pass')";

if(!mysqli_query($conn,$sql)){
echo " not inserted";

}
else{
header("refresh:2;url=GG.php");