Below is the Code, I keep getting undefined function. Also I wanted to Know the difference in between using mysql and mysqli Uncaught Error: Call to undefined function mysql_query()
```<?php
//Check if the user has filled in the details.//
if( !Isset($_POST['username'],$_POST['password']))
{
die ("<script>alert('Please Fill Both Username and Password')
</script>");
}
else
{
session_start();
//check on the posted values
$username= $_POST[('username')];
echo $username;
include('conn.php');
$password=$_POST[('password')];
echo $password;
}
//Verify Password
$result=mysql_query("Select * From user_`enter code here`info
where username='$username' AND passsword='$password'");
//Count the number if it exists
$total=mysql_num_rows($result);
//check if the credentials exists
If($total==1){
echo"Validated";
}
else{
echo"dead";
}
?>```