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
- Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
- Custom database table for plugin not creating on activation
- Creating search filter through plugin
- Can I check plugins and themes for PHP 5.6 ahead of global PHP server Update
- Set of plugins to control the Admin UI
- Missing argument 3 for wp_register_sidebar_widget()
- Shortcode button dosent work for all posts. Work for first post only
- Display data on Word Press site posts and pages from mysql table
- How make a php script run only with wp-cron
- Redirection of users away from wp-admin (but not administrators)
- Most efficient way to use classes to create admin pages using Settings API
- CMB2 toolkit: Compare 2 Dates and validate the Time
- Adapt PHP form action for WordPress?
- Using TinyMCE in plugin?
- Does deleting a Plugin via the WordPress admin ‘completely’ remove the code?
- Use wordpress plugin in codeigniter
- Add sub menu page in your plugin
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- Only allowing some emails to create an account [closed]
- WordPress Admin Menu defining function is seperate file
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Return multiple values in a shortcode attribute
- get specific value of a array | PHP
- Creating a functionality plugin to edit seriously simple podcasting
- in source code but I can’t find it in files or plugins
- Programatically upload a file to be stored inside blob field in database, NOT on filesystem
- Updating WordPress plugin admin panel footer text
- Make plugin php file called directly aware of WordPress?
- Creating an admin meta box to save post as pending
- Custom meta box with jQuery.sortable custom post type list
- Passing value as hidden parameter to next page
- Next Previous Post in wordpress with previous / next link with title?
- Storing Form data in a different database
- WordPress Post HTML after Posting
- Cannot Access Console
- Plugin error after installation
- More than one WordPress site using the same database – how to disable plugin for one site?
- woocommerce remove coupon link does not work
- Plugin or ways to limit number of users logging in the website,
- Replace old theme that understand old css (vcex_icon_box css_animation)
- How to insert datas in the table on wordpress?
- WP Ajax DB issues
- ACF checkbox return format based on page
- How do I add a medium to the WordPress database with my own plugin?
- How to get database connection details without longing to cpanel in WordPress?
- The Build menu theme is frozen with the wordpress theme
- Precheck fields when I add a new post
- How to translate wordpress blog to other languages?
- How to translate to spanish wordpress hardcoded content/files?
- How to get a post views count using ‘WordPress popular posts’ plugin
- Multiple image selection custom widget
- Change custom rewrite rule when permalink is updated/changed
- Any method to make specific widget for every post and page?
- How to add php plugin code in theme
- Embed Javascript code to registered users only
- Find all strings between an enclosing shortcode
- Need help for creating custom table on wordpress
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- Insert data in custom table during new post creation
- update_post_meta not working
- Pulling Advanced Custom Fields from other pages
- Vote It Up Plugin – Add ascending numbers to MostVotedAllTime Chart Function
- How to fix vanilla comments extra iframe space
- What would cause edit buttons for plugins to disappear?
- Duplicator live to wamp https to http
- Meta Box plugin image_advanced not showing up on frontend
- Creating Features List in WordPress Post
- PHP Creating a formula from mysql db values and db stored math operator