Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [sql] Podwojny left join
Bojakki
post
Post #1





Grupa: Zarejestrowani
Postów: 379
Pomógł: 0
Dołączył: 18.08.2004

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


probowallem w jednym zapytaniu zrobic 2 left joiny, ale cos nie wychodzi:

  1. $query2 = mysql_query("SELECT a_post.postid, a_post.parentid, a_post.username, a_post.userid, a_post.title, a_post.dateline, a_post.pagetext, a_post.ipaddress, fv_usergroup.opentag, fv_usergroup.closetag, fv_usergroup.usertitle, a_user.posts
  2. FROM a_post LEFT JOIN a_user ON a_post.userid = a_user.userid ON a_user.usergroupid = fv_usergroup.usergroupid
  3. WHERE a_post.threadid = $threadid ORDER BY a_post.dateline") OR die(mysql_error());


I w ogole nie moge wpasc na pomysl jak sie to laczy. Wie ktos moze/?


--------------------
Go to the top of the page
+Quote Post

Posty w temacie


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: 19.08.2025 - 07:23