Jump to content

help selecting from a range of dates


searls03

Recommended Posts

hi I have a code that puts events into a calendar.  I am doing a new calendar for a new client and have some different issue that are arising.  the original code I have is meant for a "one day" event.  I am now trying to place in a "multi-day" event.  how can I change this query to a multi-day selector.  

$result = mysql_query("SELECT * FROM events where start='".$m1."/".sprintf ("%02u", $d)."/".$year."'");

I need to keep everything after "start =" the same.  However, start is nolonger in my database, it is start and end.  How can I generate a query that selects it for multiple dates where it is between start and end.  does this make sense?  thanks

Link to comment
https://forums.phpfreaks.com/topic/288226-help-selecting-from-a-range-of-dates/
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.