Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. while (($line = mysql_fetch_array($result, MYSQL_ASSOC)) !== false)
  2. {
  3. if ($line['def_city'] == 'Москва')
  4. {
  5. if (strpos($line['city'],'Московская') === false and strpos($line['city'],'Москва') === false)
  6. {
  7. if (in_array('NOT_HOME', $_POST['filter']))
  8. {
  9. $list[] = $line;
  10. }
  11. }
  12. else
  13. {
  14. if (in_array('HOME', $_POST['filter']))
  15. {
  16. $list[] = $line;
  17. }
  18. }
  19. }
  20. else
  21. {
  22. if ($line['def_city'] == 'Санкт-Петербург')
  23. {
  24. if (strpos($line['city'],'Ленинградская') === false and strpos($line['city'],'Санкт-Петербург') === false)
  25. {
  26. if (in_array('NOT_HOME', $_POST['filter']))
  27. {
  28. $list[] = $line;
  29. }
  30. }
  31. else
  32. {
  33. if (in_array('HOME', $_POST['filter']))
  34. {
  35. $list[] = $line;
  36. }
  37. }
  38. }
  39. else
  40. {
  41. if (in_array('NOT', $_POST['filter']))
  42. {
  43. $list[] = $line;
  44. }
  45. }
  46. }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement