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
- When to use action hooks and plugins
- Plugin Options Not Saving to Database in WP 4.5
- Get posts from WP_Query and format them on admin_head
- Not getting author rank when using return
- Doubt using $wpbd->get_col for a single column
- How to query the custom fields by language?
- Access WordPress database outside of WordPress
- How to create custom tables in WordPress using my own plugin?
- How do I “get the next 10 posts after post_id == x”?
- How to access data in wordpress database externally using php
- Is it possible to create Custom Post plug-in?
- WordPress Settings Lost After Site Migration
- switched from query_posts to WP_query, not working now?
- How can I disable widget from being visible on some pages?
- Information and Videos for Customers in the Backend [closed]
- Help With MySQL to WPDB Query Conversion
- AJAX search posts and pages
- How can I get automatically anchors for every h2-heading?
- How to create an archive page (with links) for a date range?
- How would I go about creating a user ranked post popularity page?
- How to create a managed image repository in wordpress
- Multiple instances of nivo slider plugin
- custom user tables supported in SharDB plugin?
- Facebook-like Notification Plugin for WordPress Community Blog Sites?
- What plugin should I use for booking events and receiving payments? [closed]
- How to check if tables in WordPress still exists after activations
- how to oauth1 Wp plug-in revoke/reset.?
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- Prevent duplicate records in plugin table
- How to change this WP_Query to get all ProductIDs and not only specific one?
- LinkedIn Social Wall | Is there a plug-in (Free / Paid) to display a LinkedIn feed in a social wall (not just a feed)?
- How can I perform high-level database merging for WordPress within continues delivery?
- Delete query not working in plugin
- How to remove traces from widget during uninstallation
- Trying to create a private area custom for each user where they upload images to a server [closed]
- How to call WordPress function other files
- WordPress plugin/theme or other wayout to create portable pages?
- Insert content of a post into another
- How do I network enable a plugin for a multisite install via the database?
- WP_Query and NULL meta keys
- WordPress Backend HA (Automatic failover)
- import posts with dutch/special letters
- Automatic switch to backup database on fail
- how to use in custom single.php template using php?
- How can I change the meta_key for a particular piece of information?
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- WordPress Integration with Google Groups
- Create a table with wordpress plugin boilerplate
- wp_editor content in plugin options page
- WordPress page and plugin list using sql query
- Multiple instance of data in plugin custom database table on plugin activation
- How to create a custom shortcode based on the layout?
- Using AJAX to generate front end / viewer end pages
- WordPress and a secondary database?
- WordPress plugin creating database in localhost but not on real host
- Why this function not working for install database on plugin activation
- Plugin to create forms using HTML [closed]
- Is there a premium plugin for appointment reservation? [closed]
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- “Master” WordPress Multisite – Database Sync
- Paypal Integration [closed]
- Better ads plugin has 500.000 entries in wp_postmeta
- WooCommerce search products between price range using WP_Query
- ACF: post query, hide duplicate values [closed]
- Redirect to another page using contact form 7? [closed]
- How to create multiple database tables on plugin activation?
- Create a plugin from within WordPress
- Can I create a table on my DB without creating a plugin?
- Is there a WordPress plugin that can post to Google+? [closed]
- WordPress : Explain Plugins & Theme string value in database
- Limit the amount of words displayed by the Latest News plugin, or recommend an alternative [closed]
- Is it necessary to auto delete my WP plugin database tables when users deactivate/delete my plugin?
- Does deleting a Plugin via the WordPress admin ‘completely’ remove the code?
- Creating a CSV with PHP inside the plugin directory
- Plugins in WP_Options but not Active
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- How to insert multiple postmeta values with one query?
- How can i create a newsletter for my wp blog? [closed]
- Need a wordpress plugin to show tutorial difficulty [closed]
- Plugin to hide image in excerpt
- Allow customers to download updated versions of software
- HelpDesk solution for WordPress [closed]
- How do i edit the plugin files in DataBase via phpMyAdmin?
- WordPress as a data-store?
- How to insert and call new data in wordpress website database through a plugin
- Gathering and logging data from a plugin: how to do it without race conditions?
- How to pass the API key to the client from the database? [closed]
- WPDB: Update table
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- 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?