Event display in php with date difference -


i want display event using date difference.. example i'm having 3 fields in table ie. start_date , end_date, publish_date. event should publish publish_date end _date.. how query , result. 1 pls

use between keyword:

"select * table_name date between '" . $publish_date . "' ,  '" . $end_date . "' 

also if want give format below

select * table_name date str_to_date(date, '%m/%d/%y') between str_to_date(publish_date, '%m/%d/%y') , str_to_date(end_date, '%m/%d/%y') 

hope sure you


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -