SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: rotator and php

  1. #1
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    rotator and php

    I want to make a rotator script to display a random image every time someone visits my web page.
    These images are as information at a mysql db.
    I want also these images to be display analogous with a "random" field.
    If this field has the '10' it will display always,if it is 5 it will have 50% possibility etc.
    Now I use the order by rand() method to select the image, how can I do this?

  2. #2
    SitePoint Guru deepM's Avatar
    Join Date
    Dec 2007
    Location
    India
    Posts
    705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use jCarousel slider for it. there are different sliders they have mentioned bellow. so you can put your selection query into it. and show it in rotational way.

    here's link
    http://sorgalla.com/jcarousel/

  3. #3
    SitePoint Guru
    Join Date
    Mar 2006
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This I want is to display at only one place of my page one banner selected by random from my db and related with a value that is stored at database.
    Simiral to this


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •