Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global $wpdb;
- function be_db_connector($fields) {
- $username = 'example';
- $password = 'example';
- $database = 'example';
- $localhost = 'example';
- $wpdb = new wpdb('username','password','database','localhost');
- $wpdb->show_errors();
- $wpdb->insert('ProspectsDevOnly', array(
- 'username' => $fields['0']['value'],
- 'password' => $fields['2']['value'],
- 'email' => $fields['1']['value'],
- 'create_time' => 20180526),
- array(
- '%s',
- '%s',
- '%s',
- '%d',
- ) );
- }
- add_action( 'wpforms_process_complete_7', 'be_db_connector', 10, 1 );
Add Comment
Please, Sign In to add comment