usando
$results = mysql_db_query("$database", "select * from sites order by rand() limit 5");
il risultato non cambia....probabilmente gli sviluppatori del linguaggio hanno implementato la funzione rand() nello stesso modo in cui l'avevo creato io.....ovvero generando numeri casuali compresi tra 1 e il numero di righe della tabella........
continuando la mia ricerca, ho trovato nella documentazione ufficiale questo:
----------------
ALTER [IGNORE] TABLE tbl_name
alter_specification [, alter_specification] ...
ORDER BY allows you to create the new table with the rows in a specific order. Note that the table does not remain in this order after inserts and deletes. This option is mainly useful when you know that you are mostly going to query the rows in a certain order; by using this option after big changes to the table, you might be able to get higher performance. In some cases, it might make sorting easier for MySQL if the table is in order by the column that you want to order it by later.
----------------------------
secondo voi può funzionare in questo caso?????
![]()
continuo a provare.....prima o poi......UP UP UP
ciao!