As far as I can tell all the semi colons are there. I get no error messages. but print_r($query); get me nothing…don’t understand what I got wrong?
<?php
//a_db my database
//tab01 my table
//title one of the rows in my table
$config ['db'] = array(
'host' =>'localhost',
'username' =>'root',
'password' =>'',
'dbname' =>'a_db'
);
$db = new PDO('mysql:host'.$config['db']['host'].';dbname'.$config['db']['dbname'],$config['db']['username'], $config['db']['password']);
$query = $db->query("SELECT `tab01`.`title` FROM `tab01`");
print_r($query);
?>