![]() |
Database error, pulling my hair out now... - 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: Database error, pulling my hair out now... (/showthread.php?tid=23491) |
Database error, pulling my hair out now... - El Forum - 10-13-2009 [eluser]Militis[/eluser] Hi there. I'm developing a new app with CodeIgniter (not my first one either), and am having some weird issues with my database. I've var_dump'd my query and result, and here's what I see: Code: object(CI_DB_mysql_result)#20 (7) { Here's the relevant code: Code: $query = $this->db->get_where('users', array('user_id' => $id), '1'); I'm 100% positive my database is set up correctly in config, and there aren't any typos in my code (I've even copy/pasted from a WORKING database driven app, and still get the errors). Database error, pulling my hair out now... - El Forum - 10-13-2009 [eluser]imn.codeartist[/eluser] the error showing the result that you have an error at your update query so paste your model here Database error, pulling my hair out now... - El Forum - 10-13-2009 [eluser]Militis[/eluser] Ugh...Forgive me...It's amazing how arrogant you get at 2 am. >.< I was trying to get session data using Code: $this->session->flashdata('item'); Code: $this->session->userdata('item'); The session data wasn't loaded in flash data...>.> Sorry to bother everyone. Database error, pulling my hair out now... - El Forum - 10-14-2009 [eluser]markup2go[/eluser] That's ok, we all have goof ups like this at times. ![]() |