![]() |
|
|||||||||
|
|||||||||
|
| 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. |
|
||||||
| PHP DB Discutii despre lucrul cu baze de date in PHP. |
![]() |
|
|
Thread Tools | Moduri de afișare |
|
|
#1 |
|
32-Bit Member
Data înregistrării: 20.03.2006
Vârsta: 20
Mesaje: 45
Rep Power: 7 ![]() |
Salut!
Imi spune si mie cineva cum pot in MySQL + PHP sa ordonez niste intrari din baza de date dupa diferenta a 2 valori? De ex daca am: id | for | against 1 | 4 | 2 2 | 1 | 5 3 | 6 | 1 sa afiseze 3, 1, 2. Nu stiu daca m`am exprimat destul de clar dar sper sa intelegeti.
__________________
Keep on rockin' people!
|
|
|
|
| Sponsored Links |
|
|
#2 |
|
32-Bit Member
Data înregistrării: 20.11.2006
Locație: oradea
Mesaje: 195
Rep Power: 6 ![]() |
Deci tu ai vrea sa ordoneze dupa diferenta dintre [against] si [for]?
Incearca asa : Cod PHP:
|
|
|
|
|
|
#3 |
|
32-Bit Member
Data înregistrării: 20.03.2006
Vârsta: 20
Mesaje: 45
Rep Power: 7 ![]() |
am incercat si nu merge. afiseaza rezultatul ca si cand nu ar fi ordonat...
__________________
Keep on rockin' people!
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Moduri de afișare | |
|
|