hello guys
if you please tell me where i place my database i'm running xampp i've database called world_innodb.sql and i placed it in mysql folder so it's like that mysql/world_innodb.sql inside the database file the name is 'world' which name do i use the file name world_innobd or just world and here how i connect it
<?php
$dsn = 'mysql:host=localhost;dbname=world_innodb;';
$user = 'root';
$password = '';
try{
$db = new PDO($dsn,$user,$password);
}catch(PDOException $e){
echo 'connection faild: ' . $e->getMessage();
}
?>
and that what i got
connection faild: SQLSTATE[42000] [1049] Unknown database 'world_innodb'