Search found 3 matches

by fando
Mon Jun 27, 2011 9:29 pm
Forum: Databases
Topic: PDO problem with database connection?
Replies: 5
Views: 1596

Re: PDO problem with database connection?

The web master upgraded the PHP version to 5.3 and it fixed all my problems. For the record, I believe the problem had to do with the use of PDO::execute() and the database looking to query further results. I believe the correct way to fix this problem was to use PDOStatement::closeCursor() before u...
by fando
Sun Jun 26, 2011 3:39 am
Forum: Databases
Topic: PDO problem with database connection?
Replies: 5
Views: 1596

Re: PDO problem with database connection?

This is the error i get: "Fatal error: Call to a member function execute() on a non-object in ...login.php on line 28" which relates to: include 'db.inc'; // first time accessing the database $sql = 'SELECT COUNT(*) FROM users WHERE guest_email = ?;'; $pds = $db->prepare($sql); $pds->execu...
by fando
Sat Jun 25, 2011 7:45 pm
Forum: Databases
Topic: PDO problem with database connection?
Replies: 5
Views: 1596

PDO problem with database connection?

Hi there, I've looked everywhere for an answer to this so hopefully one of you wise people can help me out. Since changing web servers in the last couple of weeks none of my database driven code seems to be working. I've identified a work around but I'm not sure why the problem is occurring. Here's ...