Thread
:
Assign value to a variable depending on time
View Single Post
02-12-2003, 10:11 AM
#
2
(
permalink
)
joe_bruin
LOAD "*",8,1
Join Date: Feb 2003
Location: la.ca.us
Posts: 254
use the date function to figure out what time it is.
PHP Code:
<?
$x
=
date
(
"G"
);
if(
$x
>=
2
&&
$x
<
16
)
$tvar
=
50
;
else
$tvar
=
0
;
?>
joe_bruin
View Public Profile
Find More Posts by joe_bruin