Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Help, Random Link Rotation At Defined Time

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32429
    phonia
    Member

    Hello to all members and staff,

    i am trying to create a random link rotation script which can rotate links at predefined time.But i am facing trouble in this as i am just a beginner and not so perfect in this php things.

    but i need this very badly

    So Here’s my source code, please have a look on it and tell me what step i am skipping and how it can be improved for better results?

    
    date_default_timezone_set("Asia/Calcutta");
    $t=date("h.m");

    if($t<'2.14')
    $id='http://abc.com';

    else if($t<'2.16')
    $id='http://xyz.com';

    else if($t<'2.58')
    $id='https://css-tricks.com';

    else if($t<'12.00')
    $id=https://css-tricks.com/forums';

    echo"tittle";

    ?>

    it is just not rotating the links at defined time or may be i am skipping something, a little help would be appreciated so kindly help me to solve this problem.

    Thanks

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.