I'm facing a problem with PDO & Access using PHP
I have this code :
$query = "INSERT INTO work (".implode(",",array_keys($_POST)).") VALUES('".implode("','",$_POST)."')";
try{
$dbNew = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=".$dbA."; Uid=; Pwd=;charset=UTF8");
$queryaa = $dbNew->prepare($query);
$inst = $queryaa->execute();
} catch(PDOExepction $e){
echo $e->getMessage();
}
when i insert data to a MYSQL database , it gets saved correctly like :
Correct Form Of Data
But when i insert to Access database , it gets saved incorrectly as you can see here :
So , how can i solve this problem?