FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to get the system date in PHP
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How to get the system date in PHP [message #180678 is a reply to message #180674] Sat, 09 March 2013 15:24 Go to previous message
iarethebest is currently offline  iarethebest
Messages: 3
Registered: March 2013
Karma:
Junior Member
On Saturday, March 9, 2013 4:36:22 AM UTC-6, Luuk wrote:
> On 07-03-2013 14:51, Kevin Peterson wrote:
>
>>
>
>> Try this also
>
>> <?php $mysqltime = date ("Y-m-d H:i:s", $phptime); ?>
>
>>
>
>
>
> PHP Notice: Undefined variable: phptime in Command line code on line 1

I don't think I'm seeing all of the replies here (OP's message body is blank, and Kevin formatting it for MySQL seems completely random) but I'm pretty sure he meant:

<?php $mysqltime = date ("Y-m-d H:i:s", time()); ?>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bowling
Next Topic: Does PHP have a way to pass form data to a remote script?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 21:17:36 GMT 2024

Total time taken to generate the page: 0.05594 seconds