$result=$pdo->query('SELECT COUNT(*) FROM joke');
catch (PDOException $e)
$error='Database error counting jokes!';
//Even my folder "includes" contained file "error.html.php" and "db.inc.php" in directory wamp/www, but the http://localhost/totaljokes-error/ showed nothing, just blank. Am i wrong placed my file or what else? I'm blur with the share include file in directory.