SELECT
COUNT(*)
FROM
`item` AS `i`
LEFT JOIN `cat_struct` AS `cs` ON (i.cat_id = cs.id)
WHERE
(`i`.`status` = 'active')
AND (`i`.`has_image` = 'yes')
AND (`i`.`type` = 'advert')
AND (`cs`.`lkey` BETWEEN '4094'AND '4877')
AND (`cs`.`rkey` BETWEEN '0' AND '4877')
GROUP BY `i`.`id`
SELECT m.*, GROUP_CONCAT(g.genre_title ORDER BY g.genre_title ASC SEPARATOR'; ') as genre_titles
FROM music m
INNER JOIN xref_music_genre mg ON mg.music_id = m.id
INNER JOIN genre g ON g.genre_id = mg.genre_id
GROUP BY m.id
<header class="header">
<div class="headerlogo">
<div class="custom_header">...</div>
<a href="/"><img src="/img/logo-img.png"></a>
</div>
</header>
Снял запрет на extension=php_openssl.dll в php.ini и скачал данную dll - ку
select *
from table
order by ifnull(r.time_pay_for, r.time_update)
Возможность перехвата ошибки функцией, определенной в set_error_handler():
- Перехватываемые (не фатальные и смешанные)
E_USER_ERROR, E_RECOVERABLE_ERROR, E_WARNING, E_NOTICE, E_USER_WARNING, E_USER_NOTICE, E_STRICT, E_DEPRECATED, E_USER_DEPRECATED.- Не перехватываемые (фатальные)
E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING.