note 117943 rejected from array.sorting by cmb

From: Date: Fri, 04 Sep 2015 21:39:20 +0000
Subject: note 117943 rejected from array.sorting by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-203687@lists.php.net to get a copy of this message
Note Submitter: gmm at ibizmktg dot com ---- Hey I may be stupid or something... but I have a user situation where they put the order numbers in for the pictures they wish to display on the site. I have a php/MySQL system and a simple sort to keep them straight. But I have run into a situation where I wish to reorganize their photos on the page and I can not trust the numbers they input... they may put in 1,3,5,8,9... and this will of course put their photos in the right order... but I wish to select them by their sort order... you know 0,1,2,3,4 so I can make sure to always get the picture they mean to appear first, second, third... etc. But I have been searching for two days for this simple code which I know I learned a long time ago but have lost in the recesses of my mind... Can anyone give me a nudge in the right direction? Thanks

« previous php.notes (#203687) next »