wpdb doesn't work
-
can someone please tell me why can’t get the output from this query?
<?php
$user_count = $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->users” );
echo “<p>User count is {$user_count}</p>”;
?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘wpdb doesn't work’ is closed to new replies.