Forum Moderators: open
$cat = $_GET['cat'];
if ($ucat == "Others") {
$ucat = "Other Events";
}
$rssdays = getOption('rssdays');
$rsslimit = getOption('rsslimit');
$query = "select id, title, linkurl, city, state, postalcode, phone, format(longitude, 6) as longitude,
format(latitude, 6) as latitude, description, date_format(startdate, '%b %d') as startdate1,
date_format(enddate, '%b %d') as enddate1, photourl1, displayin, startdate, enddatefrom maine_festivals
where ((datediff(startdate, current_date) > 0 and datediff(startdate,current_date) < $rssdays)
or (datediff(startdate, current_date) <= 0 and datediff(enddate, current_date) between 0 and 180))
and category = '$cat'order by startdate, enddate ";
//and displayin in ('r', 'b')
if($rsslimit > 0)
$query .= " limit $rsslimit ";
else
$query .= " limit 45 ";
$result = mysql_query($query);
$currMonth = date("F");
$currMonth = strtolower($currMonth);
$linkcat = urlencode(strtolower($cat));
gck