WordPress allows you to use a class called wpdb
Here is an example of how you would use it
function add_to_db() {
global $wpdb;
$your_table_name = $wpdb->prefix . "wp-LINKS-list-table";
$the_value="123";
$wpdb->insert( $your_table_name, array('column_name' => $the_value,));
this will insert 123 into the column_name. You can read more here
Note: If you are creating a menu page that reflects the tables similar to the wordpress tables there is another class you can use to help you. It is called WP_List_Table I would suggest reading that and getting the Custom List Table Example Plugin it is very helpful showing examples of using WP_List_Table.
Related Posts:
- How to properly insert data into custom table via plugin
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin or mod for wordpress to make content publication SUPER easy
- Simple form that saves to database
- How to store ACF custom fields data in a custom table
- Bad Request (Invalid Hostname) on working server, database problem
- Get total number of comment of the posts written by an author
- How to write one comment and publish on every post using database or plugin?
- Make id column as AUTO INCREMENT on plugin activation
- Doubt using $wpbd->get_col for a single column
- How to access data in wordpress database externally using php
- Creating a CSV with PHP inside the plugin directory
- Issue running db create table query from static method
- How to create plugin/ page that reads from database
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- Add logo to admin menu in my plugin
- Equivalent of admin.php for public pages
- Is this plugin safe to run?
- How to display results from a data table with an encrypted user id?
- add_action for publish_post doesn’t work
- Getting URL GET parameter with Code snippets and storing it in database?
- How to create admin setting for this small plugin
- Cant create table on plugin activation
- How to use WordPress header function and footer function and not load word press database
- Get Shortcode output to database for static post_content
- Moving a few select DB tables to a new WP instance
- How can I store user preferences in WordPress and retreive them later?
- How to save information related to post in database?
- Allow direct access to files/folders within WordPress to replace wp-admin
- plugin doesn’t retrieve data from database
- Adding CSS to custom post type admin page causes error
- Redirect to another page using contact form 7? [closed]
- Display Custom Field Value on Admin Page Column
- How to remove/hide Yoast’s “SEO” tab in admin panel?
- Activate my plugins via FTP
- Is wp-app.php or wp-apps.php needed for WordPress?
- How to add apply_filter for a class property in plugin
- Warning: Use of undefined constant list_all – assumed ‘list_all’ (this will throw an Error in a future version of PHP)
- How to distinguish if a plugin is not installed or just not active
- JavaScript in a PHP plugin
- Checking the count within a foreach loop
- Move plugin-settings to ‘Settings’-menu in the admin
- Separate database for a wordpress plugin
- How do I add some javascript validation to the admin interface form’s onsubmit?
- remove all submenus from plugin
- creating a plug in that would tap into save/update action of posts [closed]
- Is there a function to list all uploaded images? How can I add one?
- A server-side hook failed when committing plugin code to SVN
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Need to replace Currency Shortforms
- How to do database for download stats?
- What is the WordPress approach to custom data?
- WordPress permissions error with admin account
- How to delete all categories programatically?
- How to use custom Javascript code inside a plugin?
- How to use printf to output two links?
- speed up pagination for huge database
- Problem after updating plugins
- Building a plugin into a theme
- 2 wordpress site same database
- How to redirect to a page after the form is submitted
- How to access the WordPress DB from a plugin file
- WP Insert Post If user refreshes override new post
- Code for unique user visit count on every page WordPress
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- How to get current cart values using WC_Shortcodes?
- How to authorize viewing and clicking a function only logged users?
- How to arrange custom posts in the backend/admin by custom taxonomy
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Custom Field used to allow a Free Story; no longer works
- How to send new visitor to a splash page for only one time in wordpress?
- Cron job shedules replace?
- Create a form and have custom menu display based on user answers?
- Disable plugin for administrator
- Can i add custom code in Source in specific page, Header from function.php?
- Problem with conditional woocommerce custom checkout field
- GET web api method from a WordPress PHP script
- Adding link on title its in description but not in title see screenshots attached
- Editing Global Variables from Inside Functions
- Save selectlist value (taxonomy) in wp:wp_set_object_terms
- Page doesn’t load
- Posting code inside the post instead of in the template file using shortcode
- RSS Feed has no Items (Possible Plugins Conflict)
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- conditional tags for the output of a plugin
- Can’t insert files in other inputs
- WordPress plugins not showing after switching servers
- Creating fields in the database
- Allow users to enter and edit data in one-to-many configuration
- How to fix ‘Call to undefined function do_settings()’ error?
- Updating WordPress [closed]
- How to tweak a plugin without preventing it from updating
- Place max_execution_time in plugin [closed]
- Creating a press page for our project
- Need help with restricted page for users
- wordpress illegal string offset ‘parameter’ error
- Passing an input variable through a switch statement