Phorum.ro
Your Avatar Welcome to Phorum.ro!
If you haven't registered yet, click here!
Attention Visitor:
You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Du-te înapoi   Phorum.ro > Web Design & Web Development > Programare > PHP > Discutii Generale

Discutii Generale Discutii generale despre PHP.

Răspunde
 
Thread Tools Moduri de afișare
Vechi 01.03.2007   #1
MariuSache
32-Bit Member
 
MariuSache's Avatar
 
Data înregistrării: 26.03.2006
Mesaje: 75
Rep Power: 7
MariuSache is on a distinguished road
Implicit categorii :D

Salut
Incerc sa-mi fac un site pt anunturi auto. Aveti vreo idee cum as putea face categorii si sa-mi arate in paranteza cate anunturi au fost adaugate in acea categorie de ex:

bmw(20)
Audi(50)
Ferrari(35)

Daca ati putea sa ma ajutati cu un mic inceput... ; MS
MariuSache is offline   Reply With Quote
Sponsored Links
Vechi 01.03.2007   #2
Luxian
Spamofob
 
Luxian's Avatar
 
Data înregistrării: 26.06.2006
Locație: Timișoara
Vârsta: 25
Mesaje: 398
Rep Power: 6
Luxian is on a distinguished road
Trimite un mesaj prin Yahoo pentru Luxian
Implicit

Probabil cauti ceva de genu:

SELECT `categorii`.*,COUNT(`masini`.`nume`) AS `nr_masini` FROM `categorii`,`masini` WHERE `categorii`.`id_cat` = `masini`.`id_categorie` GROUP BY `masini`.`id_cat`




Atentie!
NU am folosit COUNT() pana acum, NU am verificat daca merge ce am scris mai sus, dar sunt sigur ca asta cauti.

Daca vrei sa te documentezi citeste aici.
__________________
www.luxian.ro | "Prieten e cel care te învață să pescuiești, nu cel care îți dă pește!"
Oo==oO | w210 owner
Luxian is offline   Reply With Quote
Răspunde


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Moduri de afișare

Reguli de postare
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Pornit
emoticoanele sunt Pornit
Codul [IMG] este Pornit
Codul HTML este Pornit



Ora este GMT +3. Ora este acum 00:35:55.


Rulează cu: vBulletin Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum SEO by Zoints

XXXXXXXXXXXXXXXXXXX
Inactive Reminders By Icora Web Design