I'm trying to get value from return object by WordPress get_results
function but no success with it
Sample code
$myrows = $wpdb->get_results("SELECT SUM(view) as dviews FROM view_count WHERE post_id = '$pid'");
echo $myrows->dviews; // echo nothing
so any idea how to get the integer return as dviews
from it.