Trying to see if there is actual data in this array:
Here is the query that i am running:
global $wpdb;
$gather_answers = "SELECT * FROM ".$wpdb->prefix."comments WHERE comment_post_ID = '" . $comment_parent_id . "' ORDER BY comment_date";
$user_answers = $wpdb->get_results($gather_answers);
var_dump($user_answers);
When i do the var_dump of the array the output is:
array(0) { }
I have tried to access parts of it like:
var_dump($user_answers[0]);
But nothing comes up.
Any idea to see if there is any data in this array or not?
returns nothing?
There is no data in the array.
Arrays and objects are explored recursively by
var_dump, so if any data at all was present, it would show up.