prepare($sql)){
if($stmt->execute()){
if($stmt->rowCount() > 0){
while($row = $stmt->fetch()){
$article_data = array(
'id' => $row['id'],
'year' => $row['year'],
'author' => $row['author'],
'type' => $row['type'],
'title' => $row['title'],
'title_en' => $row['title_en'],
'file' => $row['file']
);
array_push($theses, $article_data);
}
}
}
// Free result set
unset($stmt);
} else{
unset($pdo);
http_response_code(404);
include('/en/404.html');
die();
}
} catch(PDOException $e){
die('ERROR: Could not able to execute $sql. ' . $e->getMessage());
}
?>
Department of Physics of Nanostructures and Nanotechnology