Welcome Guest, Not a member yet? Register   Sign In
simple sql query is failing
#5

(06-25-2018, 02:16 PM)Pertti Wrote: You could print out last DB query and any errors right after query call and see what it actually tried to run:
PHP Code:
$result $this->db->query($sql);
echo 
$this->db->last_query();
echo 
$this->db->error(); 

You have to make sure database configuration has save_queries set to true.
Thanks. I have it enabled but where is the last query stored?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
simple sql query is failing - by richb201 - 06-25-2018, 11:43 AM
RE: simple sql query is failing - by php_rocs - 06-25-2018, 02:15 PM
RE: simple sql query is failing - by neuron - 06-26-2018, 01:08 AM
RE: simple sql query is failing - by Pertti - 06-25-2018, 02:16 PM
RE: simple sql query is failing - by richb201 - 06-26-2018, 07:45 AM
RE: simple sql query is failing - by Pertti - 06-26-2018, 07:58 AM
RE: simple sql query is failing - by richb201 - 06-26-2018, 10:55 AM
RE: simple sql query is failing - by Pertti - 06-26-2018, 11:40 AM
RE: simple sql query is failing - by richb201 - 06-26-2018, 01:20 PM
RE: simple sql query is failing - by Pertti - 06-26-2018, 01:41 PM
RE: simple sql query is failing - by richb201 - 06-27-2018, 12:26 AM
RE: simple sql query is failing - by InsiteFX - 06-27-2018, 03:31 AM
RE: simple sql query is failing - by Pertti - 06-27-2018, 04:06 AM
RE: simple sql query is failing - by InsiteFX - 06-27-2018, 09:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB