@Vectorman211Jul 24.2006 — #What do you mean by "reset"? the reset() function simply returns the array pointer to the first index. Please explain in more detail.
@amrigoauthorJul 24.2006 — #I want to show 4 diferents images on the website home page, i have four diferent images names, recorded on the database.
id | image | upload_date ---------------------
1 | ab |2006-07-01
2 | cd |2006-07-02
3 | ef | 2006-07-03
4 | gh |2006-07-04
I show the most recent image uploaded for the first time the page load and i have these three images that i never show when the page load.
I think i can have an array wich stores the unique_id of the last image loaded
So the query will not bring that image the next time the page load. As i have only four images when i reach four elements in my array the array can start at zero elements again