Guest User

Untitled

a guest
May 31st, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. global $wpdb
  6.  
  7. function be_db_connector( $fields, $entry, $form_data, $entry_id ) {
  8.  
  9. $username = example
  10.  
  11. $password = example
  12. $database = example
  13. $localhost = example
  14. $wpdb = new wpdb('username','password','database','localhost');
  15.  
  16. $wpdb->insert('ProspectsDevOnly', array(
  17. 'ProspectID' => Null,
  18. 'InstitutionName' => Null,
  19. 'Salution' => Null,
  20. 'FirstName' => $fields['0']['value'],
  21. 'LastName' => Null,
  22. 'ProfessionalTitle' => Null,
  23. 'InstitutionalTitle' => Null,
  24. 'Phone' => $fields['2']['value'],
  25. 'Email' => $fields['1']['value'],
  26. 'DateCreated' => Null,
  27. 'StatusFlag' => Null,
  28. )
  29. array(
  30. '%d',
  31. '%s',
  32. '%s',
  33. '%s',
  34. '%s',
  35. '%s',
  36. '%s',
  37. '%d',
  38. '%s',
  39. '%s',
  40. '%s',
  41. ) );
  42.  
  43.  
  44. }
  45. add_action( 'wpforms_process_complete_5917', 'be_crm_connector', 10, 4 );
Add Comment
Please, Sign In to add comment