Forums

How to get last sql error with $wpdb without printing it to the user? (2 posts)

  1. dputer
    Member
    Posted 1 year ago #

    Hey, is there a way to get the last SQL error when using $wpdb, without printing it to the screen (I want to log it in a file/DB).

    Thanks!

  2. Matheus Eduardo
    Member
    Posted 1 year ago #

    I think getting the var $wpdb->last_error will work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags