Jump to content
  • 0

pomoc IMG - imagestring


CjKing

Dotaz

PLS Neviete ako vlozit do toho

imagestring($im, 1, 5, 5,  A Simple Text String, $text_color);

toto

<?php
$today = time();
$event = mktime(0,0,0,9,1,date("Y"));
$apart = $event - $today;

if ($apart >= -86400)
{
 $myevent = $event;
}

else
{
 $myevent = mktime(0,0,0,9,1,date("Y")+1);
}

$countdown = round(($myevent - $today)/86400);


if ($countdown > 1)
{
 echo "$countdown dni do zaciatku skolskeho roka";
}

elseif (($myevent-$today) <= 0 && ($myevent-$today) >= -86400)
{
 echo "Dnes je prvy den po prazdninach v skole";
}

else
{
 echo "$countdown den do zaciatku skolskeho roka";
}

?>

DIKI

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...