I am getting this error:

> 
> Warning: mysql\_select\_db() expects parameter 1 to be string, object
>  given in C:\xampp\htdocs\apply\insert.php on line 11
>  Database not selectedNot inserted
> 
> 
> 

```
<?php

$con = mysqli_connect('localhost','root','');

if (!$con)
{
    echo 'Not connected to server';
}

if (!mysql_select_db($con,'staff'))
{
    echo "Database not selected";
}

$Name = $_POST['username'];
$Email = $_POST['email'];

$sql = "INSERT INTO person (Name, Email) VALUES ('$Name','$Email')";

if(!mysqli_query($con,$sql))
{
    echo 'Not inserted';
}
else {
    echo 'Inserted';
}

header("refresh:2; url=index.html");

?>

```