I want to use Doctrine DBAL , I downloaded the DBAL folder from a site. and put the folder on my server . and then write this code in my file .
use Doctrine\Common\ClassLoader;
require 'Doctrine/Common/ClassLoader.php';
$classLoader = new ClassLoader('Doctrine', 'Doctrine');
$classLoader->register();
$config = new \Doctrine\DBAL\Configuration();
//..
$connectionParams = array(
'dbname' => 'mydb',
'user' => 'user ',
'password' => 'password',
'host' => 'host',
'driver' => 'pdo_mysql',
);
$conn = DriverManager::getConnection($connectionParams);
$stmt = $conn->query($select_resellerData);
$fetch = $stmt->fetch();
print_r($fetch);
is giving me this error .
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/abhijitnair/sandbox/reseller dashboard/manual_population/populatenew.php on line 3
Please suggest what i need to use dbal.
Thanks