<?php
$i = 0;
while($i < count($names)) {
echo "<li>"; //Здесь не было ;
echo "<div class = \"avatar\">
<img src=\"images/user.png\">
</div>";
echo "<h2>" . $names[$i] . "</h2>";
echo "<p>Привет!</p>";
echo "<div class = \"time\">09:15</div>";
echo"</li>";
$i = $i + 1;
}
select n.id, n.text, n.date, (case when nr.notification_id is null then 'no' else 'yes' end) as 'read'
from notification as n
left join notification_read as nr
on n.id=nr.notification_id
--where type in ('global', 78822) --не понял, что это
--group by n.id; --Это как бы не надо
select *
from `products`
where `is_gift` = 0
and exists(select *
from `products` as `laravel_reserved_0`
inner join `products_gifts` on `laravel_reserved_0`.`id` = `products_gifts`.`gift_id`
where `products`.`id` = `products_gifts`.`product_id`
and `laravel_reserved_0`.`id` = 4)
Последняя строка в запросе. echo '<li>' .$cat['title'] . '</li>';
select t1.*, t2.in, t2.out, t2.move, t1.all + t2.in-t2.out-t2.move as endofday
from tab1 as t1 /*Дата | Проект | Кол-во сотрудников*/
join tab2 as t2 /*Дата | Проект | Пришло | Ушло | Перевелось*/
on t1.data = t2.data and t1.project = t2.project