PDA

View Full Version : Adding time



dtommy79
December 20th, 2008, 01:22 PM
Hi,

I have this code:


$userid=$CURUSER["id"];
$username=$CURUSER["username"];
$date=time();
$text=trim($_GET["shbox_text"]);

I'd like to increase the time by 6 hours. How can i do that?

Any help is appreciated.

Sprut1
December 20th, 2008, 02:23 PM
$userid=$CURUSER["id"];
$username=$CURUSER["username"];
$date=time() + (60 * 6);
$text=trim($_GET["shbox_text"]);


Changed it for you, php.net explains all php functions for you.