• Jehy

    (@jehy)


    Hello! I am selecting a value from a table

    $res = $wpdb->get_var( $wpdb->prepare(
    	"SELECT 1 FROM ".$wpdb->prefix."invites WHERE <code>value</code>= %s LIMIT 1",
    	addslashes(invites_unbeautify($val))
    ) );

    And I want to check for mysql error – it is possible that my table does not exist. How can I do it?

  • The topic ‘How can I check for MySQL error with $wpdb?’ is closed to new replies.