Hi
I have a field (Search_Time) which stores "minute" in integer.
Now i have to find timediff using that "minute". like
If i hard code time, like this, then it works fineCode:Select * From tblmessage Where timeDIFF(now(), Message_Time) <= Search_Time
Now the problem is that if say the Search_Time field has value above 60, then this query doesnt work.Code:Select * From tblmessage Where timeDIFF(now(), Message_Time) <= '00:15:00'
Do i have to convert minutes in integer to something like hh:mm:ss, if yes, how??
MySql 4.1
VB.NET 2.0
Micky



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks