$results = $wpdb->get_results("SELECT COUNT(user_id)
FROM `wp_konkurs`
WHERE ( `user_email` = 'mail@mail.ru' ) AND ( DATE(user_time) = ' $nowDate ' ) ;
");
var_dump($results);
array(1) { [0]=> object(stdClass)#9992 (1) { ["COUNT(user_id)"]=> string(1) "7" } }
$results[0]->{'COUNT(user_id)'}
$results = $wpdb->get_results("
SELECT COUNT(user_id) as `count`
FROM `wp_konkurs`
WHERE ( `user_email` = 'mail@mail.ru' ) AND ( DATE(user_time) = ' $nowDate ' ) ;
");
var_dump($results[0]->count);
$results = $wpdb->get_results("SELECT COUNT(user_id) as count
FROM `wp_konkurs`
WHERE ( `user_email` = 'mail@mail.ru' ) AND ( DATE(user_time) = ' $nowDate ' ) ;
");
$result[0]->count