You can check database function for database here. For the table prefix matter you should use $wpdb->prefix . 'enam'
and it will return the table prefix. Just add the table name with this. So the total code would be :
$yourtablename = $wpdb->prefix . 'enam';
so your total code could be something like:
$wpdb->insert($yourtablename , array('username' => "enam" ,
'useremail' => "[email protected]"));
EDIT:
If you need more information you can see THIS article. This is very useful article for creating plugin with database.
Related Posts:
- Creating two database tables via plugin
- How to count number of records found in a database table?
- DROP TABLE with uninstall hook not working
- What database state changes happen after a post is manually “updated” with no changes?
- wpdb get_var is not returning any result (verified mysql query returns only one value)
- Insert data in custom table during new post creation
- Allow users to enter and edit data in one-to-many configuration
- Recommended eCommerce Plugin for a T-Shirt Sales Business? [closed]
- Is there a good plugin for an online booking system..? [closed]
- Simple form that saves to database
- Email Notifications of new posts to users – suggestions [closed]
- Plugins or Tutorials for displaying data from SQL-db on WP-page? [closed]
- Can I explicitly specify ENGINE=InnoDB in WordPress?
- Custom database or Custom Post Types?
- Should I install plugins to my WordPress installation from web sites having in URL “nulled” or, “null”?
- Quote rotator in the sidebar
- Send batch of posts as HTML Email?
- Get the last post ID
- Looking for a WordPress plugin to show five latest tweets one at a time? [closed]
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- Advanced Custom Fields query
- clean wp_options table unused rows
- plugin to search entire posts, blogs, forum, users [closed]
- New Plugin: Post update pushes a copy as a revision
- WordPress plugin for mail subscriptions [closed]
- Is there a plugin to record querystring parameters for a page (for customer tracking)? [closed]
- If I delete plugins via FTP are settings kept in DB?
- How to write one comment and publish on every post using database or plugin?
- Make id column as AUTO INCREMENT on plugin activation
- WP_Query ordering numbers as letters
- Plugin to host auctions on your site
- Where does WordPress store plugin (enabled/disabled) status for multisite?
- How do I “get the next 10 posts after post_id == x”?
- How to access data in wordpress database externally using php
- custom user tables supported in SharDB plugin?
- Facebook-like Notification Plugin for WordPress Community Blog Sites?
- How to check if tables in WordPress still exists after activations
- how to oauth1 Wp plug-in revoke/reset.?
- WordPress Backend HA (Automatic failover)
- WordPress Integration with Google Groups
- ACF: post query, hide duplicate values [closed]
- Redirect to another page using contact form 7? [closed]
- Is it necessary to auto delete my WP plugin database tables when users deactivate/delete my plugin?
- How do i edit the plugin files in DataBase via phpMyAdmin?
- How to insert and call new data in wordpress website database through a plugin
- Issue running db create table query from static method
- Problem of encoding characters (apostrophes) in my posts publications
- Separate database for a wordpress plugin
- Is there a rule for wordpress plugins developers to not do any database changes upon update?
- How to get a list of bundled products using wp_query in woocommerce
- WordPress Apply filter in plugin causes 500 internal error
- Meta query for comparing two dates
- creating a plug in that would tap into save/update action of posts [closed]
- Is there a plugin for feedback like Kissmetrics available? [closed]
- Hotel reservation plugin you would recommend [closed]
- Mask and Track Outbound Links
- Is there a plugin to turn comments into structured reviews [closed]
- Tools for styling code snippet in a web page
- How to do database for download stats?
- What is the WordPress approach to custom data?
- How retreive saved data from gravity forms in my template?
- Possible?? Pull Plugin Property Data to a Theme’s Custom Post Type
- How can I store data from custom fields to custom tables?
- How to access the WordPress DB from a plugin file
- Delete data from custom table when deleting a post
- How to display results from a data table with an encrypted user id?
- Displaying number of drafts in Posts section of admin sidebar [closed]
- Dynamic Rating Plugin to Add Anywhere
- Managing media by folder
- add_action for publish_post doesn’t work
- Automatic recurring payment using YITH subscription and Dokan Stripe
- Searching a tab/space delimited text file based upon form criteria and returning a ‘record’ into a word press results page
- Bulk Edit Media Library alt, caption, image names
- Personality quiz in wordpress using a plugin
- Cant create table on plugin activation
- Optimise wordpress database using SQL after deleting registered images from Media Folder
- Moving a few select DB tables to a new WP instance
- How to put a maximum real-time users limit
- Using Filters to modify contect – DB query results alwats appear fist
- Only return taxonomies that are linked to a category & product
- How to add specific posts to specific pages in WordPress?
- User Following System
- ACF Query result in a new td (echo)
- Many to many relationship for variable products
- Multiple Meta key in search
- wp_schedule_event function reference
- How to save information related to post in database?
- RSS Feed has no Items (Possible Plugins Conflict)
- Second foreach loop breaking (Posts2Posts)
- Ger posts from similar tags and categories
- wp_query for more fields plugin
- Using Taxonomies with Vote It Up plugin chart [closed]
- Can someone please help me find a solution to my youtube embed problems? [duplicate]
- Creating fields in the database
- Updating WordPress [closed]
- How do I copy files I downloaded from the wayback machine to my new site?
- Looking for Plugin that displays Facebook group’s photos [closed]
- contact form 7 captcha support anyother captcha plugin? [closed]
- Publish post facebook page & twitter automatically [closed]
- plugin doesn’t retrieve data from database