") ?> Destination Out - Choice Tings! http://www.destinationout.com A pick of the best upcoming events from Destination Out en-gb = curdate() ORDER BY `date` ASC LIMIT 0, $featuredMaxEvents"); while ($eventRow = mysql_fetch_array($eventSQL)) { $eventName = $eventRow['name']; $eventID = $eventRow['id']; $eventImage = strlen($eventRow['image']) > 0 ? $eventRow['image'] : "/images/featured-70.gif"; $eventDate = date("D jS M y", strtotime($eventRow['date'])); $createdDate = date("r", strtotime($eventRow['created'])); $badquotes = array("’", "“", "”"); $goodquotes = array("'", "\"", "\""); $eventDescription = str_replace($badquotes, $goodquotes, $eventRow['description']); // TODO: strip out more bad characters from url $eventURL = "http://www.destinationout.com" . $eventBaseURL . str_replace(" ", "-", $eventName) . "/" . $eventID; $venueID = $eventRow['venueid']; $approved = $eventRow['approved']; $venueSQL = mysql_query ("SELECT `name`, `city` FROM `do_venue` WHERE id='$venueID'"); $venueRow = mysql_fetch_array($venueSQL); $venueName = $venueRow['name']; $venueCity = $venueRow['city']; $musicStylesSQL = mysql_query ("SELECT `musicstyle` FROM `do_event_music_style` WHERE eventid='$eventID'"); $musicStyles = ""; $numMusicStyles = mysql_num_rows($musicStylesSQL); $counter = 0; while ($row = mysql_fetch_array($musicStylesSQL)) { $counter++; $musicStyles .= $row['musicstyle']; $musicStyles .= $numMusicStyles > $counter ? ", " : ""; } ?> <?=$eventName?>
At:
]]>