I really have NO idea of what to do with this now, i have been staring at it for hours, and reqritten it.. i can't get it to work!.
class BlogDBM extends DBManager
private $table = "blog_records";
$PDO = $this->db->connect();
$query = $PDO->prepare("
INSERT INTO ".$this->table."
$query->bindParam(":feed_id", $feedId, PDO::PARAM_INT);
$query->bindParam(":pubdate", $pubDate, PDO::PARAM_INT);
} catch(PDOException $e)
echo "Error " . $e->getMessage();
$PDO = NULL;
I'm pretty sure that mySQL chokes on the
desc field name - it is a reserved word. You'd have to put it into "`" quotes or, better, change the field name.
As for error reporting, use the errorInfo method. You can make PDO actually output the result of a failed query in the exception, but the default behaviour - I think - is to throw an exception only if the query can't be made at all, but it doesn't fail if the query is faulty.