Hello all!
I'd like to create a function, and I just need some help to get it started.
The goal for this function will be to run a mysql query, get the results, and then (here's the tricky part) randomize the order of the rows. If possible, I'd like to pass $result variable from the query into this function, and end up with the result rows in a random order that I can print out fairly easily.
I just don't even know where to start with this one, though I imagine it will involve creating a new, empty multidimensional array, then splicing random rows out of the original $result array, and putting them into the new array.
All thoughts are welcome. Thanks!
-Ange52