I have a while loop where I use the value of an array:
while (blablabla) {
$id = $scene[array_rand($scene)];
... few mysql querys using $id
}
Each time I use $id I get another value (yes this is what I want), but I would need for each time the while is running another $id, but inside the while loop the same value inside $id on each query. Is there any possibility ?
1 Answer