Jump to content
php.lv forumi

Netieku gala ar mysql order


Darkangel

Recommended Posts

Sveicinati man ira radusies problema ka es nevaru iskartot datus ka man vaig veicot mysql query.

 

Es meginaju sadu variantu bet vins negrib tomer stradat ka vaig.

 

$query = mysql_query("SELECT * FROM user ORDER BY SUBSTRING_INDEX(data, ' ', 4) ASC");

 

Dati ailite tiek glabati sadi

 

3 54 68 26 18

 

Kads man ludzu varetu pateikt ka to dabut gatavu lai normali stradatu.

 

Paldies par atsaucibu!

Edited by Darkangel
Link to comment
Share on other sites

gruti pateikt ko iisti gribi panakt, bet data ieliec starp `` jo tas ir Rezervetais vards ...

---

Tie tadi taa arii tiek glabati?

x1 x2 x3

un nakamajaa rindaa

y4 yy5 yy6

?

pareizi sapratu ?

----

un gribi sakartot peec 4 tuksuma? tb tava piemeraa peec 18 ?

Edited by Grey_Wolf
Link to comment
Share on other sites

×
×
  • Create New...