Results 1 to 2 of 2

Thread: Help! Babe/Picture of the Day Script

  1. #1
    Join Date
    Dec 2005
    Posts
    4

    Help! Babe/Picture of the Day Script

    I need some help with this picture of the day page I've been working on. First off I'm more of a designer than a developer, so I'm having a bit of trouble with this.

    I've got this working for 31 days based on DAY OF THE WEEK. But I can't figure out how to do it year round. Any ideas?

    Here's the page:
    http://www.regalthreads.com/Babe2.php

    Thanks in advance for the help!

  2. #2
    Join Date
    Jan 2006
    Posts
    13
    are you using date(j)?

    try this:
    Code:
    <img src="babe<?php printf("%003s\n", date("z")); ?>">
    'z' returns the day of the year and the rest pads the number to 3 digits with leading zeroes

Posting Permissions

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