Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date function problems

Status
Not open for further replies.

krappleby025

Programmer
Joined
Sep 6, 2001
Messages
347
Location
NL
Hi all,

im trying to add 10 days to the curent date

here is what i have

$10daysahead = date("j/n/Y", time()+864000);

but its causing this error

Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/httpd/vhosts/host-o-mania.com/httpdocs/accounts/admin/autoscript.php on line 3

what am i doing wrong
 
$end = mktime(0, 0, 0, date("m"), date("d")+10, date("Y"));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top