How to get query error code whit $wpdb (1 post)

  1. Iperdesign_IT
    Posted 3 years ago #

    Is there any way to get, after a query error such as "duplicate key" etc, the error code ( not string ) using the global variable $wpdb?

    For example, the error code for Duplicate entry 'x' for key y is 1062: this is the number i need.

    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic