Re: [PHP-DB] Array_rand issue...

2002-06-01 Thread Manuel
Here is how you do it: $pictures = array( 1, 2, 3, 4, 5, 6, 7, etc.) shuffle($pictures) //This will randomly rearrange them in the array. //then echo "$pictures[1] echo $pictures[2] echo $pictures[3]"; Dave Carrera <[EMAIL PROTECTED]> wrote: Hi All I have a fuctioning array of about 20

[PHP-DB] Re:[PHP-DB] Array_rand issue...

2002-05-31 Thread adi
"Dave Carrera" <[EMAIL PROTECTED]> menulis tgl 5/31/02 2:39:45 PM: > >Hi All > >I have a fuctioning array of about 20 items. >What i would like to do is display 3 items from the array randomly and be >able to place the output anywhere on the screen. > >I have looked at array rand and associated fu

[PHP-DB] Array_rand issue...

2002-05-30 Thread Dave Carrera
Hi All I have a fuctioning array of about 20 items. What i would like to do is display 3 items from the array randomly and be able to place the output anywhere on the screen. I have looked at array_rand and associated functions at php.net and are currently playing with the code to see if i