Since this solution was just creating the include file, I'm including the code here for reference.
<?php
function dbConnect($type) {
if ($type == 'query') {
$user = 'username';
$pwd" = 'password';
}
elseif ($type == 'admin') { // my server doesn't need this: no admins
$user = 'adminusername';
$pwd = 'adminpassword';
}
else {
exit('Unrecognized connection type');
}
// Connection Code
try {
$conn = new PDO('mysql:host=http://host.location.com; ↵
dbname=phpsolutions', $user, $pwd);
return $conn;
}
catch (PDOException e) {
echo 'Cannot connect to database';
exit;
}
}
?>