Заменете своя код:
$db_selected = mysqli_select_db("laboratory", $con);
вместо
$db_selected = mysql_select_db("laboratory", $con);
Заменете своя код:
$db_selected = mysqli_select_db("laboratory", $con);
вместо
$db_selected = mysql_select_db("laboratory", $con);