Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> bledne zapytanie
deniol13
post
Post #1





Grupa: Zarejestrowani
Postów: 190
Pomógł: 2
Dołączył: 30.11.2009

Ostrzeżenie: (10%)
X----


  1. SELECT forums.forum_id AS forums.fid, forums.forum_name, forums.forum_description, posts, topics, guests_see, forum_status, forum_order FROM forums
  2. LEFT JOIN topics
  3. ON forums.fid = topics.forum_id
  4. LEFT JOIN users
  5. ON topics.topic_poster = users.user_id
  6. GROUP BY topics.topic_id AND users.username
  7. ORDER BY forums.forum_order, topics.topic_start_date DESC


mysql_error zwraca

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.fid, forums.forum_name, forums.forum_description, posts, topics, guests_see, fo' at line 1

Nie potrafie tego rozkiminic, probowalem juz chyba wszystkiego

Ulozylem cos takiego
SELECT f.forum_id, f.forum_name, f.forum_description, f.posts, f.topics, f.guests_see, f.forum_status, f.forum_order FROM forums f
LEFT JOIN topics
ON f.forum_id = topics.forum_id
LEFT JOIN users
ON topics.topic_poster = users.user_id
'. $sql_g .'
GROUP BY topics.topic_id AND users.username
ORDER BY f.forum_order, topics.topic_start_date DESC

Dziala tylko ze nie ma id forum zwroconego w fetch assoc (zapewne dlatego ze jest duplikat kolumny)

Ten post edytował deniol13 23.06.2010, 11:03:39
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.08.2025 - 07:06