Advertisement
xladomaz

Untitled

May 5th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. switch($lastdata[0]->type_usluga) {
  2. case 'Aerolift':
  3. $adult_amount = $lastdata[0]->adult;
  4. $child_amount = $lastdata[0]->child;
  5.  
  6. $type = 0;
  7. $additional_query = "adult_tickets=$adult_amount&child_tickets=$child_amount";
  8. break;
  9. case 'Airship':
  10. $time_types = $lastdata[0]->vpolet == 30 ? 0 : 1;
  11.  
  12. $type = 1;
  13. $additional_query = "time_types=$time_types";
  14. break;
  15. case 'Airballon':
  16. $type = 2;
  17. $additional_query = "";
  18. break;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement