I want to execute this SQL query, but it does not display anything.
add_action('admin_menu', 'instafeed_setup_menu'); function instafeed_setup_menu(){ add_menu_page( 'Test Plugin Page', 'InstaFeed', 'manage_options', 'insta-feed', 'instafeed_admin_panel' ); } function instafeed_admin_panel(){ $fivesdrafts = $wpdb->get_results("SELECT * FROM options"); foreach ($fivesdrafts as $fivesdraft) { echo $fivesdraft->id; } } The code is in the main file of the plugin. Perhaps wordpress requests are executed differently. Tell me what is the error and how do I execute this query on wordpress?
optionstable without a prefix in the database? - tutankhamun*_option()do not help the author of the question - tutankhamun