Jump to content

Time format from MS Access/PHP Query


wellscam

Recommended Posts

Hi!

 

I am retreiving information from an Access database using PHP, and having a problem displaying the time.

 

Here is my Query and the line that returns the time:

          

$sql0 = "SELECT * FROM AllInfo WHERE Extension = '$ex' AND Date=#$id#";

echo '<td><center>'.$row['Time'].'</center></td>'; 

 

And this is what it returns:

 

1899-12-30 06:31:00

 

I can't figure out how to make the time (1899-12-30 06:31:00) show up with just the time (06:31). I have read the overview in the code repository, but it just deals with MySql timestamps and this is from an Access Database. Everything I try just breaks my page.

 

Help!! ???

Link to comment
https://forums.phpfreaks.com/topic/111898-time-format-from-ms-accessphp-query/
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.