Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (($line = mysql_fetch_array($result, MYSQL_ASSOC)) !== false)
- {
- if ($line['def_city'] == 'Москва')
- {
- if (strpos($line['city'],'Московская') === false and strpos($line['city'],'Москва') === false)
- {
- if (in_array('NOT_HOME', $_POST['filter']))
- {
- $list[] = $line;
- }
- }
- else
- {
- if (in_array('HOME', $_POST['filter']))
- {
- $list[] = $line;
- }
- }
- }
- else
- {
- if ($line['def_city'] == 'Санкт-Петербург')
- {
- if (strpos($line['city'],'Ленинградская') === false and strpos($line['city'],'Санкт-Петербург') === false)
- {
- if (in_array('NOT_HOME', $_POST['filter']))
- {
- $list[] = $line;
- }
- }
- else
- {
- if (in_array('HOME', $_POST['filter']))
- {
- $list[] = $line;
- }
- }
- }
- else
- {
- if (in_array('NOT', $_POST['filter']))
- {
- $list[] = $line;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement