Jump to content

fetch the date from timestamp


mrjameer

Recommended Posts

hi,

 

 

i have a mysql table with 3 fields

 

1.id  2.time 3.approved

 

values

 

1  1181237691  0

2  1181237703  0

3  1181237711  0

 

i want to fetch the distinct dates from this timestamp values using select statement.

i want to display like this

1  2007-06-07

 

 

second thing i want to update the approved value=1 where these distinct dates are equal to the above timestamps

 

any of your help will be surely appreciated.

thanks

mrjameer

Link to comment
https://forums.phpfreaks.com/topic/54635-fetch-the-date-from-timestamp/
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.