• Hi all. I have such a problem. I write:

    $id = $wpdb->get_results("SELECT * FROM wp_posts WHERE post_type='video'");
    		while ($row = mysql_fetch_array($id)){
    		echo "Id = " .$row['id'];
    	}

    But I get such an error: Warning: mysql_fetch_array() expects parameter 1 to be resource, array given in .

    How to solve this? Thaks

  • The topic ‘Mysql_fetch_array in wordpress’ is closed to new replies.