1
bradburn
images in PHP script
  • 2006/1/27 16:25

  • bradburn

  • Not too shy to talk

  • Posts: 105

  • Since: 2005/1/26


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...
Great Manchester Run

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;
?>
















: :
Days | Hrs | Mins





Many thanks for any help!

2
Xeon_DP
Re: images in PHP script
  • 2006/1/27 19:01

  • Xeon_DP

  • Just popping in

  • Posts: 25

  • Since: 2005/12/11


1) The code isn't really correct, ur using ASP style
should be more likely

2) to make an , make sure it isn't between

Login

Who's Online

160 user(s) are online (141 user(s) are browsing Support Forums)


Members: 1


Guests: 159


Mamba

more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits