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
- can not serialize and insert data from custom form
- How can you call to data in google sheet based on ID number?
- Reposition Woocommerce Message
- Change wording of admin menu item?
- greatest() function returns undefined property
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- How to handle admin and passwords requests from plugins developers?
- How do you remove plugin edit option?
- wordpress reusable content blocks
- Escape when echoed
- Scope for PHP Variables Assigned in functions.php or a plugin
- add_meta_box (Will display only in specific page admin WordPress)
- Cannot access wp-admin after disabling all plugin
- Make specific products accessible only to a user role in WooCommerce
- force customers to add only single item to card per purchase EDD [closed]
- Undefined property: WP_Post_Type::$ID
- Plugin exceeds memory limit
- How to get post URL in the_content filter?
- How to remove xmlns on language_attributes()?
- Add a plugin before main container
- Shortcode to generate and save password in a file
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- How to get member list based on role by using buddypress?
- I don’t understand how this parameter works..?
- Why wp_mail() function isn’t sending any emails and displaying ‘0’ in Chrome ‘Network’ response
- How to initialize something in unit test before the init hook being called?
- Is the wordpress user-model changed in wpmu?
- Set of plugins to control the Admin UI
- Default Plugin Settings Not Writing to Database
- Creating Tables on Network Activation
- Missing argument 3 for wp_register_sidebar_widget()
- How to Include a Loop Template File in a Plugin
- Write to / remove from default .htaccess file from plugin?
- What kind of data is that?
- Update Option Error: Notice: Undefined index
- How can I display a contact form for out of stock products in WooCommerce?
- Pass a php string to a javascript variable
- get shortcode value
- Cannot login to ADMIN even after changing password in phpmyadmin
- How to get number of Affected rows from wordpress dbDelta() function
- Unable to create new database table upon plugin activation using dbDelta
- Show price with Geo IP location
- Where to hook my plugin’s action
- WordPress Ajax Callback
- Add category to body class
- The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
- Plugin Development sqlite or WordPress’ database
- How to review WordPress website php version compatibility?
- How to send little data between admin pages of my plugin?
- printf – problem to understand code
- Custom Post Type Plugin not loading category template and loading 404 instead
- Embed a Google Sheet as you view it in a separate tab?
- Sending email from inside a plugin using PHP PEAR
- Auto delete WordPress users according to time
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- How to determine what is generating large amount of database queries?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- How to trigger $_GET request within admin plugin page?
- Wp favorite posts get user favorites in profile using buddypress [closed]
- Storing Options in a Shortcode
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- Building an email signup form. Where should the information be saved in the DB?
- How to generate video out of images via WordPress plugin
- Saving Custom Post types and fields to a custom table
- Which plugin will let me decide what users have access to on their side bar in wp-admin?
- Retrieving a Value from a wp-database
- How can I make uploaded images in the editor load with HTTPS?
- What would be the advantages/disadvantages of remote plugin installation?
- How can I get WordPress to save comments in markdown format?
- Need help restoring my WordPress blog