That's a mysql timestamp, if you want to manipulate dates in PHP you'll need
to use unix timestamps.
You have a couple of options,
select unix_timestamp(myFld) as myFld from myTbl
Then just add 60*60*24*7 to it.
Or, parse it with:
function convert_timestamp ($timestamp)
{
$timestring =
There was a little mistake in the code I posted before, try this one:
http://aidan.dotgeek.org/lib/?file=function.convert_timestamp.php
Diff Fannehh [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I have this date in timestamp format:
$a= 20040810114155;
I want to add 7
There was a little mistake in the code I posted before, try this one:
http://aidan.dotgeek.org/lib/?file=function.convert_timestamp.php
Diff Fannehh [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I have this date in timestamp format:
$a= 20040810114155;
I want to add 7
seems like you echo an 1 before print $time is called. Look through your
code, there
must be something printed or echod. Perhaps it's simple some html
(?1?php) or something.
Regards, Michael
Baldey_uk [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all,
In article 007b01c1a582$f9d67ec0$[EMAIL PROTECTED],
[EMAIL PROTECTED] says...
Hi there,
Is there any one who could give me an idea regarding the date and time
triggering PHP script. This date and time script whould gives an output if
ever it hit Jan 1 and print's it's year.
Any idea?
5 matches
Mail list logo