The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
last query - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10) +--- Thread: last query (/showthread.php?tid=979) |
last query - brahm.pragya - 02-26-2018 Hello.. How can I print last query or check database query error? I use the DB.php file and print query in the function but I didn't get any error so I need to print the query. Is there any way to print last query? last query - mudmin - 05-09-2018 Hi! I'm so sorry this question got lost in the shuffle during our spam attack. You can just do dump($db); and you will get the last query submitted to the db. last query - mudmin - 05-09-2018 You can also do dump($db->errorInfo()); to get any error messages like "hey that column doesn't exist; |