Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. function newRidePush() {
  2. $responseData['status'] = "0";
  3. $responseData['data'] = array();
  4. $responseData['message'] = "Added Successfully";
  5. $rows = $this->ridePushing();
  6. $notificationMsg="New Driver Wanted!";
  7. for($i = 0; $i < $row; $i++){
  8. $this->sendPushNotification($row['vDeviceToken'], $notificationMsg, $generatePayloadData, $notificationType);
  9. echo $row;
  10. }
  11. je($responseData);
  12. }
  13.  
  14.  
  15.  
  16.  
  17.  
  18. function ridePushing() {
  19.  
  20. $sql = "SELECT `vDeviceToken` from tbl_user where `vDriverorNot` = 'driver'";
  21. $query = $this->db->query($sql);
  22. $rows = $query->row_array();
  23.  
  24. return $rows;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement