Posted by:
hasaneryilmaz0
(---.2.15.144.dynamic.ttnet.com.tr)
Although I have a database, I get the following error.
SQLSTATE[HY000] [1049] Unknown database 'hascodin_site'
php connection code
>
$baglanti = "mysql:host=localhost;dbname=hascodin_site";
$mysqluser = "root";
$mysqlpass = "";
try{
$baglan = new PDO($GLOBALS["baglanti"],$GLOBALS["mysqluser"],$GLOBALS["mysqlpass"]);
$baglan->query("SET CHARACTER SET 'utf8'"
$baglan->query("SET NAMES 'utf8'"
}catch(PDOException $e){
print $e->getMessage();
}
<
Edited 1 time(s). Last edit at 03/16/2020 10:44AM by RiggsFolly.