Welcome Guest, Not a member yet? Register   Sign In
PDO in Codeigniter
#8

[eluser]Ickes[/eluser]
Thanks kgill. I am connected to the db and am good to go on that part. However, I can't bind parameters. Any ideas?

model example

Code:
//dummy variable
$pass_thru = 5;

$this->db->prepare("SELECT * FROM tbl_blog WHERE blog_id <= :test");
$this->db->bindParam(':test', $pass_thru, PDO::PARAM_INT);
$data = $this->db->execute();

return $data;

I receive
Fatal error: Call to undefined method PDO::bindParam()

Any help? Also, if there is a place where I can learn this by reading, instead of bugging, please let me know. I try to google and research as much as possible before posting but it seems most just stick with the Active Record method. Or maybe they just know what they are doing. Smile


Messages In This Thread
PDO in Codeigniter - by El Forum - 07-02-2009, 01:05 PM
PDO in Codeigniter - by El Forum - 07-02-2009, 01:12 PM
PDO in Codeigniter - by El Forum - 07-02-2009, 01:44 PM
PDO in Codeigniter - by El Forum - 07-02-2009, 03:20 PM
PDO in Codeigniter - by El Forum - 07-03-2009, 04:09 PM
PDO in Codeigniter - by El Forum - 07-04-2009, 09:42 AM
PDO in Codeigniter - by El Forum - 07-04-2009, 10:20 AM
PDO in Codeigniter - by El Forum - 07-06-2009, 11:35 AM
PDO in Codeigniter - by El Forum - 07-06-2009, 12:02 PM
PDO in Codeigniter - by El Forum - 07-06-2009, 12:22 PM
PDO in Codeigniter - by El Forum - 07-06-2009, 12:31 PM
PDO in Codeigniter - by El Forum - 07-06-2009, 12:39 PM
PDO in Codeigniter - by El Forum - 07-06-2009, 12:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB