I think the problem might lie in:
$wpdbinfo = $wpdb->get_results("SELECT * FROM bo_mytable WHERE id=3");
$wpdb->get_results() returns an array of objects, yet you are referencing a property on $wpdbinfo (->nameinfo). You’ll either want to loop through the $wpdbinfo array, or if you’re certain you’ll get only a single record (possibly a safe assumption if id is a primary key), you would instead call your query using $wpdb->get_row().
Related Posts:
- dbDelta only creates the last table
- How do I force wp_enqueue_scripts to load at the END of ?
- How do I make my plugin load before the headers are output so I can redirect wordpress?
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- How do I extend one plugin I’m writing with another I’m writing using classes?
- Add code into on a per page/post basis
- Adding an admin page – OOP approach not working
- How to remove/hide action links cluttering under specific plugins’ names
- scheduled event not getting executed
- Using the media uploader in a custom plugin
- ob_end_flush error when using wpdb in plugin
- Trying to get logged-in user data inside php class
- How to send “Location” header on plugin form submit event?
- Meteor Slides as header only for homepage and Use featured image of each page as header for respective pages
- Check if a class exists within a method
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- post_content getting cut off on blank space on $wpdb->update
- Strip HTML comments from plugins in header/footer
- Creating a menu page in a Object Oriented developed plugin
- send_headers don’t work on wordpress multisite
- Inserting large amounts of data into a custom table during plugin install
- Override WP Class Private Function
- Getting user roles in plugin files
- plugin ajax to external php file always return null
- Plugin activation hook in an abstract class
- Doubt using $wpbd->get_col for a single column
- Access WordPress database outside of WordPress
- WordPress repository forbids me call wp-load.php in non-WordPress file
- Help With MySQL to WPDB Query Conversion
- Show an image in my header.php
- Problem with creating tables for Plugin
- Most efficient way to use classes to create admin pages using Settings API
- Change commission_status paid when withdraw_status vendor is completed
- Basic Object Oriented plugin question
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Using wpdb without loading all plug-ins via wp-load.php
- What does making sure “that your theme is WordPress header and footer tag enabled” mean?
- Know which plugin is calling JS in wp_head()?
- My single.php page does not show the related data to the post which is clicked
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- Cannot get wpdb data (Error in a simple fuction) [closed]
- WPDB: Update table
- Why is my custom post type not being activated on plug-in activation?
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Custom Login Page — wp_signon Headers Already Sent?
- Adding Plugin Assets to Header
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Built a second plugin but it overwrote the first one
- profile_update hook doesn’t works inside a class
- WordPress Object Oriented plugin development [closed]
- How to access OOP plugin function inside themes or other plugin
- Plugin: Hooking up classes that have their own hooks
- Store plugin page content in wp_options?
- Displaying data from another database
- Using $wpdb in a plugin, what sort of data does it return?
- How to access the WordPress DB from a plugin file
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Edit page header on a custom plugin
- Linked pages from plugin on front can’t see $wpdb
- How do I fill the Home Description?
- Hook for plugin to insert into entry-meta
- How to make a slider hearder?
- Need help creating asynchronous data scraper in WordPress
- ob_end_flush(): failed to send buffer of zlib output compression (0) in external php
- WordPress Custom Hook with Class method
- $wpdb->delete not working for me
- any word search WordPress
- How to securely controlling data without keeping it in postmeta?
- WordPress plugin blog creation
- How to change the width of certain paragraph or header blocks?
- Modifying server’s response to API endpoint
- Woocommerce functions in custom class, avoid errors
- No result after wpdb->insert
- Debug in WP backend
- How to overlay a webcomic plugin on top of a header image?
- Set Content-Type header in do_parse_request filter
- How to fix slow comment query?
- Primary Menu doesn’t show because of w3 cache
- Reorganization of namespaces
- Insert Plugin on a custom page
- accessibility of an object created in a plugin, from the header
- Action hook “wp_insert_post” works but not for last imported post
- Why function hooked using object are executing at all time?
- Proper way to trigger a MySQL query via link in a plugin
- get_var result empty for query of custom table in plugin admin
- How do add_action and WP_Query
- Change text “My Basket” in woocommerce artificer theme
- Plugin won’t activate, fatal error (widget class not found)
- OOP Plugin: Where should I place the action hooks in the class?
- Making plugin to use different table prefix cause permission problem
- Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?
- Global Handle to Class unavailable in Plugin?
- $wpdb selects wrong database
- FATAL ERROR: WP complains about redeclaration [closed]
- Function not being called on form submit, only blank admin-post.php page
- Footer option is missing in Customiser
- How to check record is exist or not in WordPress CRUD Operation with $wpdb
- wp db request without refreshing the page
- Is it possible to use Classes between WordPress plugins with separate namespaces?
- all plug-ins load scripts on all pages