Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder sonny's Avatar
    Join Date
    Apr 2008
    Location
    United States
    Posts
    567
    Thanks
    88
    Thanked 0 Times in 0 Posts

    Repeat countdown sat to sat

    Hi, I am trying to get a countdown by days repeating from
    every Saturday to Saturday, example Sun would be 6 days
    to Sat

    I use this simple enough, to count the days down to a purticular
    date, just do not know how to edit to countdown from every
    sat - sat

    PHP Code:
    $days ceil((strtotime("5/20/2013") - time())/(60*60*24)); 
    Thanks
    Sonny

  • #2
    Regular Coder patryk's Avatar
    Join Date
    Oct 2012
    Location
    /dev/couch
    Posts
    398
    Thanks
    2
    Thanked 64 Times in 64 Posts
    http://php.net/manual/en/function.date.php

    this should do it:
    PHP Code:
    echo date('w'); 


  •  

    Posting Permissions

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