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

(This post was last modified: 06-26-2018, 07:58 AM by Pertti.)

(06-26-2018, 07:45 AM)richb201 Wrote: Thanks. I have it enabled but where is the last query stored?

First, you have to make sure in database config file, you've set save_queries to true.

They are then automatically saved in $this->db.

The sample code should print out most recent query and error message, if it failed on the website. It is of course very rough way to debug code and you shouldn't make that code public, but at least it should get you closer to what's going on with your script on your development environment.
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