![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 40 Pomógł: 0 Dołączył: 18.07.2007 Ostrzeżenie: (0%) ![]() ![]() |
Powinno po prostu wyświetlić posty (proste forum), dołączyć dane o użytkowniku i posegregować hronologicznie. Jak wkleje to w pgadmin'a (postgresem chodzi) to działa, a w PDO ni bata.
$query = 'select *, "user"."id" as "uid"' .' from "post" left join "user" on "post"."user" = "user"."id"' .' where "topic" = '.$this->topic['id'].'' .' order by "post"."id"'; Warning: PDOStatement::execute() [function.PDOStatement-execute]: SQLSTATE[42803]: Grouping error: 7 ERROR: column "post.id" must appear in the GROUP BY clause or be used in an aggregate function in ... -- niektóre odpowiedzi na http://www.goldenline.pl/forum/php/209745 - niestety bez rezultatów |
|
|
![]() ![]() |
![]() |
Aktualny czas: 24.08.2025 - 00:31 |