--- autor.php 2001/10/23 16:13:59 1.1 +++ autor.php 2001/10/27 16:54:50 1.2 @@ -2,7 +2,8 @@ if (!$id) exit; include_once("inc/global.php"); include_once("inc/util.php"); - include_once("inc/conn.php"); + if (!include("inc/conn.php")) exit; + if (!$dbh) exit; $sql = "SELECT ime, cv, slika FROM autori WHERE (autor_id = $id)"; $sth = $dbh->prepare($sql); if (!$sth) error("Cannot prepare query: \"$sql\""); @@ -22,7 +23,7 @@ - +