Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $wpdb
- function be_db_connector( $fields, $entry, $form_data, $entry_id ) {
- $username = example
- $password = example
- $database = example
- $localhost = example
- $wpdb = new wpdb('username','password','database','localhost');
- $wpdb->insert('ProspectsDevOnly', array(
- 'ProspectID' => Null,
- 'InstitutionName' => Null,
- 'Salution' => Null,
- 'FirstName' => $fields['0']['value'],
- 'LastName' => Null,
- 'ProfessionalTitle' => Null,
- 'InstitutionalTitle' => Null,
- 'Phone' => $fields['2']['value'],
- 'Email' => $fields['1']['value'],
- 'DateCreated' => Null,
- 'StatusFlag' => Null,
- )
- array(
- '%d',
- '%s',
- '%s',
- '%s',
- '%s',
- '%s',
- '%s',
- '%d',
- '%s',
- '%s',
- '%s',
- ) );
- }
- add_action( 'wpforms_process_complete_5917', 'be_crm_connector', 10, 4 );
Add Comment
Please, Sign In to add comment