12 $consultaPreparada=$miDB->prepare($sentenciaSQL);
13 $consultaPreparada->execute($parametros);
14 return $consultaPreparada;
15 }
catch(PDOException $exception){
16 $_SESSION[
'paginaAnterior'] = $_SESSION[
'paginaEnCurso'];
17 $_SESSION[
'paginaEnCurso'] =
'error';
18 $_SESSION[
'error'] =
new AppError($exception->getCode(),$exception->getMessage(),$exception->getFile(),$exception->getLine());
19 header(
'Location: indexLoginLogoff.php');