[Linux-programlama] Re: sql sorgu

---------

[Linux-programlama] Re: sql sorgu

From: nsm <nesimiacarca_at_gmail.com>
Date: Tue, 4 Mar 2008 15:53:31 +0200
Message-ID: <174096cb0803040553k554b2fd1g718b1fcf5904377d@mail.gmail.com>

 BlogId ile sayfayı gösterip bu deÄŸere göre tag listelersin

Örnek bir php kodu:
$sql = "SELECT t.tagName FROM tagrelation rel, tag t ";
$sql .= "WHERE rel.tagId = t.tagId AND rel.blogId = $BlogId";

ben böyle yaptım incelemek istersen beklerim www.nesimia.com

03.03.2008 tarihinde Güyçmırat Amanmırat <guychmyrat_at_yahoo.com.tr> yazmış:
>
> Merhaba.
> 3 tane tablom var.
>
> 1 Blog.
>
> BlogId BlogName BlogDetail
> 3 deneme deneme detail
>
>
> 2. tag
>
> tagId tagName
> 5 istanbul
> 8 deneme
> 13 kod
>
>
> 3. tagrelation
>
> tagId blogId
> 5 3
> 8 3
> 13 3
>
>
>
> Şöyle sorgu yapmak istiyorum.
>
> Her bloğu çektiğimde taglerinde gelmesini istiyorum.
>
> Yani tagrelation tablosunda tagid lere göre tag tablosunda isimlerini
> alacak
> ve şöyle gelecek.
>
> Blog adi : deneme
> Blog devamı : deneme detail
> Tagleri : Ä°stanbul, deneme, kod
>
>
> Teşekkür ederim.
>
>
> __________________________________________________
> Yahoo! kullanıyor musunuz?
> İstenmeyen postadan bıktınız mı? Yahoo! Posta'da piyasanın en iyi
> istenmeyen posta korunması var
> http://tr.mail.yahoo.com
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>

-- 
Nesimi ACARCA
www.nesimia.com

_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Tue 04 Mar 2008 - 15:14:43 EET

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.