sandrulis Posted June 12, 2010 Report Share Posted June 12, 2010 Kas īsti ir jākārto lai man kārtotu skaitļus pēc lielumu, piem: id = 1, skaitlis = 2 id = 2, skaitlis = 6 id = 3, skaitlis = 32 es uzrakstu BY skaitlis un kā lielāko viņš man parāda 6 nevis 32 kods: mysql_query("SELECT * FROM datubaze ORDER BY skaitlis DESC LIMIT 1"); Quote Link to comment Share on other sites More sharing options...
marrtins Posted June 12, 2010 Report Share Posted June 12, 2010 Nomaini skaitlis datu tipu no (var)char uz int Quote Link to comment Share on other sites More sharing options...
sandrulis Posted June 12, 2010 Author Report Share Posted June 12, 2010 o, plds par info. viss ok. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.