I'm probably being stupid and missing an obvious error in my code. However, I can't spot it so would appreciate any help available.
This code works fine:
<?php
include-once ('config.php');
$dsn = "mysql:host=$host;dbname=$dbname;charset=$charset;port=$port";
try {
// create a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.