PHP PDO error successful no matter what
<p>I have a problem with my database! Here is my code:</p>

<pre><code>&lt;?php
$host = "/homes/49/jc192699/public_html/dbase";
$database = "EduPro.db";
$dbhandle = new PDO("sqlite:".$host.$database);

if (!$dbhandle){
echo "Error connecting to database.\n";
}

else{
echo "&lt;br&gt;";
echo "&lt;br&gt;";
echo "Database connection successful!";
}

mysql_select_db($database);

?&gt; 
</code></pre>

<p>The problem is that it's saying "Database connection successful!" No matter what I do, if I type the address in wrong, it still says successful, when I renamed the database to a database that doesn't exist, it still says successful. I can't see what the problem is here?</p>

<p>If anybody could help me out it would be GREATLY appreciated!</p>

<p>Thank you!</p>
