CodeIgniter Forums
Problem with pdo - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem with pdo (/showthread.php?tid=47729)



Problem with pdo - El Forum - 12-20-2011

[eluser]Unknown[/eluser]
Hello,

I have a problem with the pdo, I use actually a oracle database.

With pdo, I can make insert, delete, update (it's work) but the select return always 0 rows.

I hope someone can help me.

My code of select to my model is:

Code:
public function read($select = '*', $where = array())
{
  return $this->db->select($select)
       ->from($this->table)
       ->where($where)
       ->get()
       ->result();
}
I have try with the query() function too, but it's the same.


Thank you very much to your anwser.
(sorry for my english Wink)