I can’t bee too specific answering your question, but you can certainly use a $wpdb
instance to access another database:
$db = new wpdb('user', 'password', 'dbname', 'dbhost');
$results = $db->get_results('..query..');
Related Posts:
- How to return number of found rows from SELECT query
- How do I make an HTML table from a database table?
- Inserting dynamic content into a page
- Check if post of title already exists
- How to export/import theme customizer settings?
- $wpdb->delete column values IN ARRAY()?
- WP API V2 returning Invalid User ID
- Does WordPress cache get_user_meta() results?
- Export User Info to CSV from Front End
- WordPress admin never finishes saving page on site with large page count
- Retrieving and Displaying Data From a Table
- Refresh page after update_post_meta
- error importing localhost export file to server
- Would manually deleting the dumping data fix a “#1062 – Duplicate entry ‘1’ for key ‘PRIMARY'” phpMyAdmin error?
- How to sort results from a custom database table
- Why WordPress uses 4 tables to manage terms
- WPDB: how to get the value of a field in a custom database table
- WP database error for comments_popup_link()
- Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder
- No wp-config.php file on local install of wordpress – site still displays
- How to create Sub Sub domain Multi User blogs?
- How to find the output of contact form 7 shortcode? [closed]
- Issue with foreach on duplicate meta_key’s
- Access/update database with jQuery
- Different database query in function.php using mysqli
- Add custom php database code above
- wp_insert_post not working
- Is it necessary to sanitize wp_set_password user input?
- database interactions using OOP
- Accessing the database from a plugin outside of action hooks
- Create WP_Query to search for posts by their categories or their parent/child categories
- Storing Array from returned database query and using the array in a new query
- WordPress not reflecting changed of the database
- How to save checkbox values for logged in users?
- Update results, Before deleting the related category [closed]
- How WordPress reacts to a lack of memory of the server [closed]
- Execute long and heavy processes
- database sent to a JSON file
- Databases – Submitting data from inputs to database [closed]
- db converts decimal number wrong
- Filtering a Database Query
- Is it best to avoid using $wpdb for security issues?
- Blob file download problem
- How to retrieve the data from the sever and displaying it in a page?
- wpdb prepare insert table doesn’t work
- Should I use WordPress to skin a database website?
- Creating Database Table vs. Adding MetaData to Post & User
- How can I find the cause of a 500 server error?
- I can’t update my data through $wpdb
- Can’t successfully check if post with title exist in database
- Cant connect to database with php 7.3
- Lost in trying to create user database system
- Delete database record using plugin from admin panel
- How to get image from url from the database?
- Wpdb get->results to out the the month from the db
- 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
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Add row to custom database Table and delete all rows older than 1 day
- Using PHP Code Snippets to query a database, $dbconnection->get_results is outputting nothing
- Database entry removed on browser refresh, Ajax PHP jQuery
- Change wordpress’ database data using ajax – how to get current user id?
- Error establishing a database connection (Set-up locally)
- add role on WordPress in PHP on a second database
- Create a new account on site B with data from the purchase of site A
- How to search order using database frontend short code WordPress
- Limiting posts based on nested meta_query
- Preserving backslashes in post_content
- PHP Warning: mysqli_query(): after updating my websites php from 5.6 to 7.2
- Error establishing a database connection (configuration)
- Unable to insert two value in two different columns (WordPress database)
- Retrieving and Displaying Data From a Table
- why not selecting multiple rows of same standard_id using SQL query from database?
- Using custom php to connect to database blocks wp from accessing galery pictures
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- Updating the database after parsing CSV document
- getting the values of hidden inputs to use them in a php mysql query
- How to display post_content from database in different on template page?
- Front end/Database connection in WP
- Issue in url update when using wordpress update query
- direct query to post_meta table
- can’t delete a row from post_meta table
- special characters not supporting in wordpress
- How to set max users to 17.000
- How to fetch results from database
- How to connect database table to each registered wordpress user.
- Let users register weight each day and save it in DB
- Trying to post information from a remote database to wordpress page
- Query specific posts per user selections from dropdown menus
- Create an unique ID number after submit form
- Fetching wpdb data from a php file seems to break?
- Create custom table for wordpress custom registration flow
- Custom form that stores data in mysql database
- How to get data (not value or name) from radio options to POST to database
- Retrieve data from external database and insert back in
- How to get the last date updated of postmeta?
- Putting form result in my database
- Bulk data save in custom table