Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <?
  2. // include getresponse functions
  3. require_once '/home/chad/www/careersinstantly.com/includes/mailchimp.php';
  4. require_once '/home/chad/www/careersinstantly.com/includes/jsonRPCClient.php';
  5. // connect to get abandons
  6. mysql_connect("localhost", "xxxx", "xxxx");
  7. mysql_select_db("xxxxx");
  8. $dstamp = date('Y-m-d', time()-(60*60*24));
  9. $results = mysql_query("SELECT * FROM user_registration JOIN user_clicks ON user_registration.sub_id = user_clicks.sub_id");
  10.  
  11. $merged = array()
  12.  
  13. while ($data = mysql_fetch_array($results)) {
  14.         $first = $data['first'];
  15.         $last = $data['last'];
  16.         $email = $data['email'];
  17.         $key = $data['key'];
  18.         $value = $data['value'];
  19.        
  20.         $merged[$email]['first'] = $first;
  21.         $merged[$email]['last'] = $last;
  22.         $merged[$email][$key] = $value;
  23.        
  24.         //echo $first ." ". $last ." ". $email ." ". $key ." ". $value."\n";
  25. }
  26.  
  27. var_dump($merged);
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement