Cod php&mysql pentru clasament
Scris: Mie Oct 05, 2005 9:49 am
Sa zicem ca eu am un clasement facut in mysql:
+----------+--------+---------+------+------------+------------+
| Nume | Tag | Jucate | Ga | Gf | Pct |
+----------+--------+---------+------+------------+------------+
| team1 | tag1 | 12 | 30 | 23 | 50 |
| team1 | tag3 | 12 | 25 | 23 | 10 |
| team1 | tag2 | 12 | 20 | 23 | 50 |
| team1 | tag4 | 12 | 12 | 21 | 20 |
| team1 | tag5 | 12 | 2 | 21 | 33 |
| team1 | tag6 | 12 | 20 | 25 | 35 |
| team1 | tag7 | 12 | 0 | 10 | 10 |
| team1 | tag8 | 12 | 15 | 20 | 55 |
| team1 | tag9 | 12 | 2 | 10 | 10 |
+----------+--------+---------+------+------------+------------+
(scuzati modul cum arata dar nu merge copy%pasteul bine )
vreau un script in php&mysql care sa sa bag cele 2 taguri si scorul dintre ele si sa le bage la Ga,Gf pentru fiecare echipa in parte si apoi punctele.
Imi dati niste sfaturi k sunt cam in pana de idei?
+----------+--------+---------+------+------------+------------+
| Nume | Tag | Jucate | Ga | Gf | Pct |
+----------+--------+---------+------+------------+------------+
| team1 | tag1 | 12 | 30 | 23 | 50 |
| team1 | tag3 | 12 | 25 | 23 | 10 |
| team1 | tag2 | 12 | 20 | 23 | 50 |
| team1 | tag4 | 12 | 12 | 21 | 20 |
| team1 | tag5 | 12 | 2 | 21 | 33 |
| team1 | tag6 | 12 | 20 | 25 | 35 |
| team1 | tag7 | 12 | 0 | 10 | 10 |
| team1 | tag8 | 12 | 15 | 20 | 55 |
| team1 | tag9 | 12 | 2 | 10 | 10 |
+----------+--------+---------+------+------------+------------+
(scuzati modul cum arata dar nu merge copy%pasteul bine )
vreau un script in php&mysql care sa sa bag cele 2 taguri si scorul dintre ele si sa le bage la Ga,Gf pentru fiecare echipa in parte si apoi punctele.
Imi dati niste sfaturi k sunt cam in pana de idei?