• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
last query
#1
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?
  Reply
#2
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.
  Reply
#3
You can also do dump($db->errorInfo()); to get any error messages like "hey that column doesn't exist;
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)