Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [MySQL][PHP] LIMIT dla LEFT JOIN
kapitannemo
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 10.12.2007

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


Witam mam taki problem chcę ustawić Limit na jedną z tabel
tabela1 $mysql_galc ta tabela ma posiadać limit
tabela2 $mysql_gal


o to mój kod

  1. mysql_query("select p.gal_id pgal_id, p.gal_catid pgal_catid, p.gal_url pgal_url, p.gal_date pgal_date, c.cat_id ccat_id, c.cat_name ccat_name, c.cat_name2 ccat_name2, c.cat_desc ccat_desc, c.cat_date ccat_date from $mysql_galc c "." left join $mysql_gal p on p.gal_catid = cat_id "." order by c.cat_date desc, p.gal_date desc") or die(mysql_error());


z góry dziękuję za pomoc smile.gif
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: 19.08.2025 - 10:09