Error when selecting content from ADDTIME(CURTIME(), '14400 hour') format
Posted
by
Blahwhore
on Stack Overflow
See other posts from Stack Overflow
or by Blahwhore
Published on 2012-12-04T04:44:54Z
Indexed on
2012/12/04
5:04 UTC
Read the original article
Hit count: 90
So apparently i've stumbled upon a coding error when trying to select the time from my database.
SELECT * FROM `videos` WHERE `added_time` > AddTime( CurTime(), '14400 hour' )
is the code, i'm trying to select all the videos posted 10 days (14400 hours) ago using the "added_time" format, because it worked for my previous coding but in this one it work work.
Shown below is a link to the image showing how my database structure for videos are shown.
Edit: Previously i had this problem for retrieving and deleting bulletins posted 10 days ago, and this code worked, however this code apparently won't work when trying to retrieve the videos :/ I don't know why, they're using the same format.
© Stack Overflow or respective owner