Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Grupowanie posegregowanych rekordów
wlq
post
Post #1





Grupa: Zarejestrowani
Postów: 21
Pomógł: 0
Dołączył: 5.07.2006

Ostrzeżenie: (0%)
-----


Hej,
problem pojawił się po przeinstalowaniu php(z 4 na 5). Działało mi wtedy zapytanie o tresci:
  1. <?php
  2. $result = $db->Execute("select *, count(*) as occurrences from `data` inner join `characteristics` inner join (select * from actualisations order by actualisations.dateCreated) actualisations on data.id = characteristics.mainDataId and data.id = actua
    l
  3. sations.mainDataId where characteristics.keyWords like '%$expression%' group by actualisations.actDataId") or die($db->ErrorMsg());
  4. ?>

Po upgrade php, pojawia mi sie błąd:
  1. Something is wrong in your syntax obok 'select * from actualisations order by actualisations.dateCreated' w linii 1

Uzywam ADOdb, php5.1, mysql 4.
Gdzie może być problem i czy istnieje jakiś inny sposób segregowania wyników w GROUP BY?

Ten post edytował wlq 24.01.2008, 14:44:18
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 05:11