How can I get $wpdb to show MySQL warnings?

From quick look through the source it doesn’t seem like wpdb actively implements any handling for warnings (as opposed to errors). Proactively you can just ask for them as a custom query ($wpdb->get_results( ‘SHOW WARNINGS;’ ) I suppose, but implicitly they just aren’t tracked by WP core.

I want show only data for today

Well dear thanks for your effort.I solved this .here is answer. $user1 = $wpdb->get_results(“select product,checked_by,submit_date,unit_data,temperature_in,temperature_out,time_in,category from diary_user_form_storage where category_name=”opening” and DATE(`submit_date`) = CURDATE()”);

(Who to follow) Twitter widget

It looks like you’re saving a PHP std object in the database. It might be an array, I’d have to check how WordPress saves those. In either case: If you’re using add_user_meta() or update_user_meta() to insert the user meta into the database (and you should be), then using get_user_meta() with the third parameter set to … Read more