72 users online (1 members and 71 guests)  


  Results 1 to 2 of 2

Related

  1. Random Forum Logo...    Forum: PHP Forum
    Replies: 2
  2. random image    Forum: CGI Perl Forum
    Replies: 3
  3. Random Image Problem    Forum: Javascript Forum
    Replies: 3
  4. Replies: 0
  5. Replies: 2
  1. #1
    opticalpigion's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2008
    Posts
    1

    Random Image/Member/Forum topic

    Hello,

    i want to call

    random image from gallery,

    member from user and

    topic from forums

    can anyone explain how to do that ? Please Help

  2. #2
    skym's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2008
    Location
    Oradea, Romania
    Posts
    10

    Re: Random Image/Member/Forum topic

    I guess all have unique IDs. Well there is the rand() function. Put it in a loop, get a random number between the lowest and highest IDs, check if the number exists as ID, if not then repeat the loop.