Ok, as there in the subject im a newbie..in PHP.
Somehow ive got a web app that i need to modify the code a bit.
This app was written by somebody else.
Inside the code, there is a routine that retrieve a date value from a form and then
convert it into unix timestamp using mktime() then store the value to database.
To present the date value to user, the unix timestamp stored in database is converted
using date().
Here is the sample code :
<?php
$unix="1144188000"; //sample data
$thedate=date('d/m/y',$unix);
echo("the date : " . $thedate); // will result will be 05/04/06
echo("<br/>");
$split = explode("/", $thedate);
echo(mktime(0,0,0,$split[1],$split[0],$split[2])); //I expect the result will be the same as $unix, but apparently its not
?>
In above example, the mktime() does NOT return a same value as $unix as I expect it to.
tyvm for all ur kind help.
Cheers!!!