<?php
error_reporting(E_ALL ^ E_DEPRECATED);
ini_set('display_errors','On');
//////////////////////Funciones base de datos/////////////////////////////////
function conectar_base_de_datos()
{
global $conexion2;
$conexion2 = mysqli_connect("localhost","danvtlxs_panamaroutes","Danna2019*","danvtlxs_panamaroutes");
mysqli_query($conexion2, "SET NAMES 'utf8'");
if (!$conexion2) {
echo "Error: " . mysqli_connect_error();
exit();
}
//else echo 'Connected to MySQL';
return $conexion2;
}
function desconectar_base_de_datos()
{
global $conexion2;
if ($conexion2) mysqli_close($conexion2);
}
?>