I've made an MySql database, and I want to acess it trouht PDO, so... when I used MySql, I made this code:
try{
$con = new PDO(mysql:host=localhost;dbname=rvbarret_ergosum, $user, $pass);
}catch (PDOException $e){
echo $e->getMessage();
}
If I want to use like
new PDO(sqlite:....);
what i should use after sqlite so this work likes mysql, once that mysql pdo looks like doesn't work in frihost?
try{
$con = new PDO(mysql:host=localhost;dbname=rvbarret_ergosum, $user, $pass);
}catch (PDOException $e){
echo $e->getMessage();
}
If I want to use like
new PDO(sqlite:....);
what i should use after sqlite so this work likes mysql, once that mysql pdo looks like doesn't work in frihost?
