try{
$connection = new PDO("mysql:host=$dbserver;dbname=$dbdatabase",$dbusername,$dbpassword);
}catch(PDOException $pe){
$servererror = $pe->getMessage();
$c = false;
}
try{
$connection = new PDO("mysql:host=$dbserver;dbname=$dbdatabase",$dbusername,$dbpassword);
}catch(PDOException $pe){
$servererror = $pe->getMessage();
$c = false;
}