$con = new mysqli("localhost","root","","maroonboxdb");
if ($con->connect_error) die ($con->connect_error);
{
echo "Failed to connect to MYSQL: " . mysql_connect_error();
}
//Perform Queries
$actress_query = “SELECT firstname, lastname, date_of_birth FROM actors WHERE gender LIKE ‘Female’”;
$result = $con->query($actress_query);
if (!$result)die ($con->error);
$rows = $result->num_rows;
for ($j = 0; $j < $rows; ++$j)
{
$result->data_seek($j);
$row = $result->fetch_array(MYSQL_BOTH);
echo $row['firstname'].' ';
echo $row['lastname'].' ';
echo $row['date_of_birth'].'<br>';
}
$result->close();