Vad är ditt problem så att säga? :P
Frågan#1
Tjosan.. är jag ute & dansar med ugglor eller är det ok?
self::$instance-> setAttribute(PDO::ATTR_ERRMODE, false);
self::$instance-> setAttribute(PDO::ERRMODE_EXCEPTION, true);
<?php
include("../load.php");
//$smarty->caching = true;
try
{
//if(!$smarty->is_cached('index.tpl'))
//{
$db = edb_gold::getInstance();
$fetch_projects = "SELECT * FROM project_info WHERE info_subjectt = 'none' ORDER BY info_date DESC";
$stmt = $db->prepare($fetch_projects);
$stmt->setFetchMode(PDO::FETCH_ASSOC);
if (!$stmt->execute())
{
throw new Exception('Error: Could not show projects.');
}
$smarty->assign('collected', $stmt->fetchAll());
$smarty->display('index.tpl');
//}
}
catch (Exception $e)
{
//if(!$smarty->is_cached('error.tpl'))
//{
// mail(me);
$smarty->assign('error_msg', $e->getMessage());
$smarty->display('error.tpl');
//}
}
?>

