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
- Can i use php sql functions instead of $wpdb?
- what is the use of /wp-includes/SimplePie?
- wpdb::prepare was called incorrectly
- Display data from a non wordpress database on a page template
- Inserting choice in database table
- Custom query to get post names beginning with a digit
- How To Make Connection To WordPress Data Base In A Plugin?
- Has anyone tried putting PHP ActiveRecord on WordPress?
- How can I call a row of user specific data from a custom table added to the WP Database
- How to merge local and live databases?
- How to track a users progress through pages by inserting data into WordPress Database?
- PHP syntax error when using wpdb update?
- “The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Prevent Data Resubmission On Page refresh
- SQL QUERY – Select a value directly from the database
- Get stock by custom meta field on all Woocommerce variable products
- Transferring working local PHP site to wordpress – with database (MySQL)
- Display fields as values in array from external SQL DB
- I want to select the from values from database in WordPress? [closed]
- How does WordPress know wich language is chosen when there is a database connection error
- How can I save unique user data on my site? [closed]
- Dynamic content in template
- Using custom tables for old posts
- Custom array from a query only write the last row of the query
- How can I import an excel column into wordpress database?
- WordPress Block developer from exporting Database via PHP
- Querying Database with wpdb
- How do I display offsite database info on my wordpress site?
- 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
- 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 to get specific attribute from DB
- PHP -> SQL Query with Summing
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- Set default Database Storage Engine when creating tables with plugins?
- Change MySQL PDO connection to a WPDB connection
- How do I make this Metabox show current DB value?
- $wpdb->get_results breaking page?
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Call to a member function get_row() on a non-object, Unable to use global $wbdp inside a plugin
- SQL error with custom query
- Unserialize Custom Field & Save as Multiple Rows in WordPress Database
- WordPress get last inserted user id
- What’s wrong in my PHP code? I’m using WordPress Astra Theme and I can’t insert data into my SQL
- WordPress SQL Prepare
- $_POST returning empty values
- How to send custom form submissions to WordPress Database?
- wp_update_post gives 500 internal error
- What is the correct way to search 3 custom fields only in WordPress?
- custom search query database in child theme
- wp-login.php?redirect_to=https problem
- How to query a staging database?
- Rewrite SQL query as a prepared statement and use in foreach loop
- How to return count of items found in SQL query
- Get meta_query value by user meta array
- Can form entries from a WordPress form go to a database
- AJAX Not Working With WordPress Database properly
- Weird Behaviour: Not all WordPress Posts appearing
- Can not manually create a database ( db, user, pass ) for a plugin
- Insert double entry in DB
- Manipulate database of WordPress site with my own scripts
- How to pass username into form that sends data to database
- Changing regular db connection to $wpdb
- Can’t send form data to wpdb when URL has query string
- $wpdb how to make a record lookup
- Error resetting database index using ALTER TABLE in $wpdb->query