Order By Random() In Cordova/phonegap
I'm trying this SQL query to work: 'SELECT * FROM people WHERE gender='female' ORDER BY val, RANDOM();' But, I got the following error: E/SQLiteLog: (1) not authorized to use fun
Solution 1:
var res = shuffle(resultArray);
for (var i=0; i < res.length; i++)
{
name = (res[i].name);
}
Post a Comment for "Order By Random() In Cordova/phonegap"