goma smile Posted October 24, 2013 Report Share Posted October 24, 2013 (edited) Kāds var ieteikt kā meklēt kā labāk metodi ka var kārtot pēc ORDER sort.... Proti manīt atrašanās vietu sarakstā (Augšā lejā) Edited October 24, 2013 by goma smile Quote Link to comment Share on other sites More sharing options...
daGrevis Posted October 24, 2013 Report Share Posted October 24, 2013 ORDER BY `id` DESC/ASC Quote Link to comment Share on other sites More sharing options...
briedis Posted October 24, 2013 Report Share Posted October 24, 2013 Pievieno vēl vienu kolonnu, kurā glabā arī atrašanās vietu. Kad sortē ierakstus, tad arī pārraksti šo pozīcijas lauku tādā secībā, kā vajag. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted October 24, 2013 Report Share Posted October 24, 2013 Ā, ja gribi kā juzers kārtot, tad jā, skatīt briedis doto atbildi + manu atbildi. :) Quote Link to comment Share on other sites More sharing options...
goma smile Posted October 25, 2013 Author Report Share Posted October 25, 2013 ORDER BY `id` DESC/ASC (manā gadijumā pēc sort) To es saprotu bet piemeramid | name | sort Ieraksti kā ieraksti bet piemēram vēlos lai ORDERĒ pēc sort, bet pats "admins/lietotājs" var bīdīt pozīciju augstāk zemāk.... Quote Link to comment Share on other sites More sharing options...
martins256 Posted October 25, 2013 Report Share Posted October 25, 2013 (edited) http://jqueryui.com/sortable/ http://bit.ly/1cgSpGf Edited October 25, 2013 by martins256 Quote Link to comment Share on other sites More sharing options...
goma smile Posted October 25, 2013 Author Report Share Posted October 25, 2013 http://jqueryui.com/sortable/ http://bit.ly/1cgSpGf :* Danke 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.