This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get upcoming events | |
$today = date("Y-m-d"); | |
$query1 = "SELECT * FROM events where start_date >= '$today' and private_event <> 'Y' order by start_date"; | |
$result1 = pg_query($query1); // Run query | |
/* Access the data in "event_desc," and organize it as an array by ID number */ | |
// Get regular event descriptions | |
if( $desc_columns == '' ) | |
$desc_columns = '*'; | |
if( $desc_where == '' ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get upcoming events, intended for site homepage | |
$today = date("Y-m-d"); | |
$query1 = "SELECT * FROM events where start_date >= '$today' order by start_date limit 3"; | |
$result1 = pg_query($query1); // Run query | |
$events = ''; | |
if($result1) | |
{ | |
$rows = pg_num_rows($result1); | |