Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result

I get the error when trying to run this:

<?php
function kishvoteCount() {
global $wpdb;
 $query = "SELECT c_alef FROM {$wpdb->prefix}kishvote";
 $posts = $wpdb->get_results($query) or die(mysql_error());;
 while($row=mysql_fetch_array($posts))
{
    echo('<PRE>');
    print_r($row);
    echo('</PRE>');
}
}
?>

Does anyone know what the problem is?

Read more here: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result q


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , ,

Wordpress related questions and answers: