Hi there, (im a noob and cant code by the way)
I have some php script that works really well, but I would like to add a picture to it.
I tried this html code which works fine but it didnt work...
Does any one know how i would add an image to this countdown script I found?
?>
// enter target date below like this: "January 2, 2001"
$target = "July 10, 2006";
// enter string of what this start date is. $top_text appears above the counter, $bottom_text displays below the counter
$top_text = "There are ";
$bottom_text = "until Great Charity Run";
//--------------------------
$now = strtotime ("now");
$then = strtotime ("$target");
$difference = $then - $now;
$num = $difference/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
?>
echo $top_text ?>
echo $days ?> |
: |
echo $hours ?> |
: |
echo $mins ?> |
Days |
| |
Hrs |
| |
Mins |
echo $bottom_text ?>
Many thanks for any help!