Codice PHP:$ids= array();
$prova = "SELECT id FROM rand";
$query = mysql_query($prova);
while($f = mysql_fetch_array($query)){
$ids[]= $f[0];
}
shuffle($ids);
echo $ids[0];
![]()
Codice PHP:$ids= array();
$prova = "SELECT id FROM rand";
$query = mysql_query($prova);
while($f = mysql_fetch_array($query)){
$ids[]= $f[0];
}
shuffle($ids);
echo $ids[0];
![]()
Without faith, nothing is possible. With it, nothing is impossible
http://ilwebdifabio.it