From ea0e63f81d0203b26fef192339cb95c2ece6e193 Mon Sep 17 00:00:00 2001
From: themohooks <81331307+themohooks@users.noreply.github.com>
Date: Mon, 8 Jul 2024 23:06:32 +0300
Subject: [PATCH] fix search
---
views/pages/Profile/Index.php | 2 +-
views/pages/Search.php | 18 +++---------------
2 files changed, 4 insertions(+), 16 deletions(-)
diff --git a/views/pages/Profile/Index.php b/views/pages/Profile/Index.php
index 5dd769f..bd4ec7e 100644
--- a/views/pages/Profile/Index.php
+++ b/views/pages/Profile/Index.php
@@ -208,7 +208,7 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]);
-
+
diff --git a/views/pages/Search.php b/views/pages/Search.php
index 1fa7da6..0e4b3d3 100644
--- a/views/pages/Search.php
+++ b/views/pages/Search.php
@@ -19,11 +19,11 @@ use App\Services\{Router, Auth, DB, Date};
Результаты поиска
-
+ Найдено изображений: =DB::query('SELECT COUNT(*) FROM photos WHERE user_id=:uid ORDER BY id DESC', array(':uid'=>$_GET['id']))[0]['COUNT(*)']?> · Новый поиск
$_GET['aid']));
+ $photos = DB::query('SELECT * FROM photos WHERE user_id=:uid ORDER BY id DESC', array(':uid'=>$_GET['id']));
foreach ($photos as $p) {
- echo '
+ echo '
@@ -47,18 +47,6 @@ use App\Services\{Router, Auth, DB, Date};
-
-
-
-
-
-
-
-
-
-
-
-
|