SELECT COUNT(*) WHERE location='new york'
//fetch rows
$rand=rand(0,$rows-1);
SELECT ... WHERE location='new york' LIMIT ".$rand.", 2
I have query try to select 2 random rows from db, what I did is
I count total rows first than use rand() to random the page
any suggestion, or are any better way to do this?