Jump to content

[SOLVED] problem with capturing time


jaydeesmalls

Recommended Posts

Hi all,

 

I have this

 

$date=date('Y-m-d');
$time=time('NOW()');

$query="INSERT INTO $tbl_name (date, time, product, phoneline, question, answer, metatags) VALUES ('$date', '$time', '$product', '$phoneline', '$question', '$answer', '$metatags')";
$result=mysql_query($query);

 

And all the fields work except for time.

 

The field type in the table is "TIME", but all I get is 00:00:00.

 

Any suggestions? 

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/136494-solved-problem-with-capturing-time/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.