Initial thoughts are that it depends where your load_marque.php file is located. I assume within a theme or plugin.
If so, what happens when the file is called directly. If there are some errors, these will be shown on the page.
Based on the on here https://codex.wordpress.org/Class_Reference/wpdb your query your query may need to be changed slightly. An example from the codex shows it more like this:
global $wpdb;
$results = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}options WHERE option_id = 1", OBJECT );
The differences seem to center around not requiring the ID number to be wrapped in single quote marks.
Related Posts:
- How to return number of found rows from SELECT query
- $wpdb->delete column values IN ARRAY()?
- WPDB: how to get the value of a field in a custom database table
- Any possible way to make $wpdb->get_results() return anything else than array?
- database interactions using OOP
- Trying to establish connection to External Database
- Getting id of poll from WP database
- How to insert a single row to WP database table?
- $wpdb->update with multiple parameters gives error
- Update results, Before deleting the related category [closed]
- How WordPress reacts to a lack of memory of the server [closed]
- How to retrieve the data from the sever and displaying it in a page?
- I can’t update my data through $wpdb
- wpdb Cannot Update column in Database
- Delete database record using plugin from admin panel
- Wpdb get->results to out the the month from the db
- WPDB – Read and write value from / to database
- How to Generate a list of Most Commented post?
- Add row to custom database Table and delete all rows older than 1 day
- select a single val though a table in wordpress
- Add posts to custom table in database instead of wp_posts
- Using wpdb to connect to a different database is not working
- How to grab data from input and store it into custom table in database?
- Accessing external database: ERR_INCOMPLETE_CHUNKED_ENCODING
- How to fetch results from database
- Querying multiple meta_keys in WordPress SQL query
- MySQL database migration to WordPress
- Insert into db with foreach problem
- How to get data (not value or name) from radio options to POST to database
- Putting form result in my database
- Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder
- inserting a post from an extern php file but post content doesn’t show on wp site
- Database query works fine outside WordPress
- Using $wpdb (WPDB class) ‘replace’ with multiple WHERE criteria problem
- $wpdb->insert() does not Insert record in a table
- Using custom tables for old posts
- Databases – Submitting data from inputs to database [closed]
- Help with a $wpdb MySQL Query
- db converts decimal number wrong
- Not connecting to database in file with multiple MySQL connections
- Fatal error: Call to a member function query() on a non-object
- Filtering a Database Query
- Custom array from a query only write the last row of the query
- Issue running db create table query from static method
- Display Data in Table from External Database in WP using Shortcodes
- Is it best to avoid using $wpdb for security issues?
- How can I import an excel column into wordpress database?
- Blob file download problem
- Error using WordPress $wpdb object to get result from custom table
- WordPress Block developer from exporting Database via PHP
- Querying Database with wpdb
- $wpdb returns duplicate posts
- Execute a function every hour in the background
- Create page with custom php script and fetched data
- Can’t update multiple rows with $wpdb query
- Mixing variables into an array when inserting values
- wpdb prepare insert table doesn’t work
- Should I use WordPress to skin a database website?
- How do I display offsite database info on my wordpress site?
- Creating Database Table vs. Adding MetaData to Post & User
- Wpdb->insert() doesn’t insert new row after the last one
- WordPress and MySQL: trying to print data using PHP from user_meta custom field data
- Building a REST API for your web app exposes primary keys of DB records?
- how to get serialized post meta
- Most commented posts by time period (last 12h, last 24h and etc)
- Use $wpdb or other PHP script method to find/replace in WP database
- How can I add a new row in a separate database when someone registers via WordPress?
- How to get specific attribute from DB
- Saving data from custom form in wordpress database
- Basic wpdb update question
- How can I find the cause of a 500 server error?
- Can’t successfully check if post with title exist in database
- Cant connect to database with php 7.3
- Output: “Array”
- How to use mysql LIKE with wpdb?
- PHP -> SQL Query with Summing
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- Lost in trying to create user database system
- How to get image from url from the database?
- Set default Database Storage Engine when creating tables with plugins?
- Cannot access $wpdb, comes back NULL
- How do I prepare strings for insertions as values into a MySQL table?
- Filter results from a serialized string to use on statistics
- How to add data to a custom field at the wp_users table?
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- How to use AJAX in WordPress in MYSQL query?
- Get wp_current_user_id using PHP and MySQL
- Change MySQL PDO connection to a WPDB connection
- How do I make this Metabox show current DB value?
- $wpdb->get_results breaking page?
- form $_post action value gets truncated after it passes through two forms
- Why my query does not run with prepare
- Why won’t this wpdb get_results query return results?
- WPDB secure custom form
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Adding data to custom wordpress database table
- wpdb getting avatars and author url
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Undefined variable: row?