getting last query from adodb
Moderator: General Moderators
getting last query from adodb
I can't figure out how to get the last query that was attempted via adodb. Does anybody know how I could do this? I'm using the active record add-on temporarily until I can roll my own, but there is an error with one of it's generated queries, but I don't know how to look at the query to figure out what's going on... 
http://phplens.com/lens/adodb/docs-adodb.htm#php5
Do you use php5?Exceptions: Just include adodb-exceptions.inc.php and you can now catch exceptions on errors as they occur.
maybe http://phplens.com/lens/adodb/docs-adodb.htm#ex4
In the above example, we have turned on debugging by setting debug = true. This will display the SQL statement before execution, and also show any error messages. There is no need to call ErrorMsg() in this case. For displaying the recordset, see the rs2html() example.