Park Events

Jan. 01, 2000
Failed to get DB handle: SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2AFA PDOException Object ( [message:protected] => SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2AFA [string:Exception:private] => [code:protected] => 08001 [file:protected] => /var/www/html/gwcca/connect2.php [line:protected] => 9 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/html/gwcca/connect2.php [line] => 9 [function] => __construct [class] => PDO [type] => -> [args] => Array ( [0] => sqlsrv:Server=tcp:sql-02.public.865f89f1c61a.database.windows.net,3342;Database=ubr [1] => webquery [2] => pSRB2!$YbiCU ) ) [1] => Array ( [file] => /var/www/html/gwcca/wp-content/plugins/php-code-for-posts/Classes/Shortcode.php(95) : eval()'d code [line] => 4 [args] => Array ( [0] => /var/www/html/gwcca/connect2.php ) [function] => include ) [2] => Array ( [file] => /var/www/html/gwcca/wp-content/plugins/php-code-for-posts/Classes/Shortcode.php [line] => 95 [function] => eval ) [3] => Array ( [file] => /var/www/html/gwcca/wp-content/plugins/php-code-for-posts/Classes/Shortcode.php [line] => 45 [function] => do_shortcode [class] => PhpCodeForPosts_Shortcode [type] => :: [args] => Array ( [0] => PhpCodeForPosts_Snippet Object ( [id:protected] => 15 [name:protected] => PARK - Event lists [slug:protected] => park-event-lists [description:protected] => Park event list tile on index page [code:protected] => prepare("SELECT Top 5 * FROM vw_GWCCA_Events WHERE Venue = 'P' OR Venue = 'DP' OR Venue = 'GP' order by EventStart ASC"); $sql->execute(); $rowcount=mysqli_num_rows($sql); if($rowcount==0){ echo "No upcoming events at this time."; } while( $row = $sql->fetch()) { /*fpr sort */ $startD = date('n/j/Y',strtotime($row[EventStart])); /*for calendar */ $startD_tile = date('d',strtotime($row[EventStart])); //start Date $startM_tile = date('M',strtotime($row[EventStart])); //start Month $start_tile = $startD_tile."
".substr($startM_tile,0,3); //display on tile $startT = date('H:i',strtotime($row[EventStart])); $startD_AC = date('m/d/Y H:i', strtotime($row[EventStart])); $endD = date('n/j/Y', strtotime($row[EventEnd])); $endD_AC = date('m/d/Y H:i', strtotime($row[EventEnd])); if($startD == $endD){ $myDate = $startD; }else{ $myDate = $startD.' - '.$endD; } echo "
".$start_tile ."
"; echo "
"; include(locate_template('myContent-eventLinks.php')); echo "
"; echo "
".$myDate."
"; echo "
"; } ?> [shared:protected] => 0 ) [1] => Array ( [snippet] => 15 [slug] => [param] => ) ) ) [4] => Array ( [file] => /var/www/html/gwcca/wp-includes/shortcodes.php [line] => 356 [function] => handle_shortcode [class] => PhpCodeForPosts_Shortcode [type] => :: [args] => Array ( [0] => Array ( [snippet] => 15 [slug] => [param] => ) [1] => [2] => php ) ) [5] => Array ( [function] => do_shortcode_tag [args] => Array ( [0] => Array ( [0] => [php snippet=15] [1] => [2] => php [3] => snippet=15 [4] => [5] => [6] => ) ) ) [6] => Array ( [file] => /var/www/html/gwcca/wp-includes/shortcodes.php [line] => 228 [function] => preg_replace_callback [args] => Array ( [0] => /\[(\[?)(php)(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)/ [1] => do_shortcode_tag [2] => [php snippet=15] ) ) [7] => Array ( [file] => /var/www/html/gwcca/wp-includes/class-wp-hook.php [line] => 307 [function] => do_shortcode [args] => Array ( [0] => [php snippet=15] ) ) [8] => Array ( [file] => /var/www/html/gwcca/wp-includes/plugin.php [line] => 189 [function] => apply_filters [class] => WP_Hook [type] => -> [args] => Array ( [0] => [php snippet=15] [1] => Array ( [0] => [php snippet=15] ) ) ) [9] => Array ( [file] => /var/www/html/gwcca/wp-includes/post-template.php [line] => 253 [function] => apply_filters [args] => Array ( [0] => the_content [1] => [php snippet=15] ) ) [10] => Array ( [file] => /var/www/html/gwcca/wp-content/themes/gwcca2018/single.php [line] => 84 [function] => the_content [args] => Array ( ) ) [11] => Array ( [file] => /var/www/html/gwcca/wp-includes/template-loader.php [line] => 106 [args] => Array ( [0] => /var/www/html/gwcca/wp-content/themes/gwcca2018/single.php ) [function] => include ) [12] => Array ( [file] => /var/www/html/gwcca/wp-blog-header.php [line] => 19 [args] => Array ( [0] => /var/www/html/gwcca/wp-includes/template-loader.php ) [function] => require_once ) [13] => Array ( [file] => /var/www/html/gwcca/index.php [line] => 17 [args] => Array ( [0] => /var/www/html/gwcca/wp-blog-header.php ) [function] => require ) ) [previous:Exception:private] => [errorInfo] => Array ( [0] => 08001 [1] => 11002 [2] => [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2AFA ) ) 1