echo div class block img src images 001_46 png hight 18 width 18 Добав

1
2
3
4
5
echo '<div class="block"> <img src="/images/001_46.png" hight="18" width="18"/> Добавили в корзину: '.DB::$dbs->querySingle("SELECT COUNT(id) FROM magazin_korz WHERE file = ?", [$id]).'';
if (DB::$dbs->querySingle("SELECT count(id) FROM magazin_korz WHERE file = ? AND user_id = ?", [$id,$us['id']]) == 0) {
echo '<a href="/pages/shop/file/'.$id.'?corz"> [Добавить]</a>';
}