0

I have set up everything to work with PDO_OCI. I have made a connection too. But as soon as I try to fetch something it returns false or null always:

$selectBla = "SELECT bla,bla,bla
                                 FROM bla
                                 WHERE blabla = ?
                                 AND bla = ?";
$parameters = array($_POST['bla'], $_POST['bla']);
$query = $db->prepare($selectBla);
$query->execute($parameters);
$userRow = $query->fetch(PDO::FETCH_ASSOC);

Does anybody have a idea? Does it have to do with OCI_PDO?

Thanks in advance.

Daan
  • 12,099
  • 6
  • 34
  • 51

1 Answers1

0

I added this line to see the error messages and I got one after that I easily solved the problem.

$dbh->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING ); 
Daan
  • 12,099
  • 6
  • 34
  • 51