How can I solve this ?, I went up my website for the first time and I get the following error messages when viewing the site. Of course, this error is not represented locally, so I will be omitting some important rule perhaps when uploading it to some domain ...
!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
include 'config.inc.php';
$db=new Conect_MySql();
$sql = "select*from book where id=".$_GET['id'];
$query = $db->execute($sql);
if($datos=$db->fetch_row($query)){
if($datos['file']==""){?>
<p>NO tiene archivos</p>
<?php }else{
header('Content-type: application/pdf');
readfile('archivos/'.$datos['file']);
}
}
?>
</body>
</html>