View Single Post
Old 12-24-2016, 10:56 AM   #2
riyadh
Registered User
 
Join Date: Dec 2016
Posts: 11
Change the query like this :

$results = $wpdb->get_results('SELECT COUNT(*) as mycount FROM wp_realty_listingsdb WHERE DOM = 0');

Capture result :

$mycount = $results[0]['mycount'];
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Webmaster of
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
riyadh is offline   Reply With Quote