Here is the php connectivity code:
<?php 
  $con=mysql_connect("127.0.0.1", "root", ""); 
  mysql_select_db("society");
  if(!$con)
  {
    echo "Failed to Connect to MySql".mysqli_connect_error();
  }
  else
  {
    echo"success";
  } 
  $query="INSERT INTO users (fname, lname, email, password)
                      VALUES('".$_POST['fname']."','".$_POST['lname']."','".$_POST['email']."','".$_POST['password']."')"; 
  mysql_query($query,$con);
?> 
This is the error. Tried, but I am not able to solve the error:
Notice: Undefined index: fname in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\scripts\html\connect.php on line 13
Notice: Undefined index: lname in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\scripts\html\connect.php on line 13
Notice: Undefined index: email in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\scripts\html\connect.php on line 13
Notice: Undefined index: password in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\scripts\html\connect.php on line 13
 
     
     
    