MKGC Veterans' Section

MKGC Veterans HeaderMKGC Veterans HeaderMKGC Veterans Header
Return to Home Page. Help.
An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 400
        )

    [mid] => 400
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 400)
    [result3] => Resource id #11
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 400
        )

    [mid] => 400
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 400)
    [result3] => Resource id #11
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 400
        )

    [mid] => 400
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 400)
    [result3] => Resource id #11
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 408
        )

    [mid] => 408
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 408)
    [result3] => Resource id #12
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 408
        )

    [mid] => 408
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 408)
    [result3] => Resource id #12
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 408
        )

    [mid] => 408
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 408)
    [result3] => Resource id #12
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 412
        )

    [mid] => 412
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 412)
    [result3] => Resource id #13
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 412
        )

    [mid] => 412
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 412)
    [result3] => Resource id #13
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 412
        )

    [mid] => 412
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 412)
    [result3] => Resource id #13
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 428
        )

    [mid] => 428
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 428)
    [result3] => Resource id #14
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 428
        )

    [mid] => 428
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 428)
    [result3] => Resource id #14
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 428
        )

    [mid] => 428
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 428)
    [result3] => Resource id #14
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 431
        )

    [mid] => 431
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 431)
    [result3] => Resource id #15
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 431
        )

    [mid] => 431
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 431)
    [result3] => Resource id #15
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 431
        )

    [mid] => 431
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 431)
    [result3] => Resource id #15
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 415
        )

    [mid] => 415
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 415)
    [result3] => Resource id #16
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 415
        )

    [mid] => 415
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 415)
    [result3] => Resource id #16
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 415
        )

    [mid] => 415
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 415)
    [result3] => Resource id #16
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 407
        )

    [mid] => 407
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 407)
    [result3] => Resource id #17
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 407
        )

    [mid] => 407
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 407)
    [result3] => Resource id #17
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 407
        )

    [mid] => 407
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 407)
    [result3] => Resource id #17
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 406
        )

    [mid] => 406
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 406)
    [result3] => Resource id #18
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 406
        )

    [mid] => 406
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 406)
    [result3] => Resource id #18
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 406
        )

    [mid] => 406
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 406)
    [result3] => Resource id #18
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 409
        )

    [mid] => 409
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 409)
    [result3] => Resource id #19
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 409
        )

    [mid] => 409
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 409)
    [result3] => Resource id #19
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 409
        )

    [mid] => 409
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 409)
    [result3] => Resource id #19
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 403
        )

    [mid] => 403
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 403)
    [result3] => Resource id #22
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => Array
        (
            [0] => West Malling
        )

    [club_name] => West Malling
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 403
        )

    [mid] => 403
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 403)
    [result3] => Resource id #22
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => Array
        (
            [0] => West Malling
        )

    [club_name] => West Malling
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 403
        )

    [mid] => 403
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 403)
    [result3] => Resource id #22
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => Array
        (
            [0] => West Malling
        )

    [club_name] => West Malling
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 401
        )

    [mid] => 401
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 401)
    [result3] => Resource id #23
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 401
        )

    [mid] => 401
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 401)
    [result3] => Resource id #23
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 401
        )

    [mid] => 401
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 401)
    [result3] => Resource id #23
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 405
        )

    [mid] => 405
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 405)
    [result3] => Resource id #24
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 405
        )

    [mid] => 405
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 405)
    [result3] => Resource id #24
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 4
            [forename] => John
            [surname] => Baker
        )

    [vid] => 4
    [sn] => Baker
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 4)&&(match_id > 399))
    [result2] => Resource id #10
    [row2] => Array
        (
            [match_id] => 405
        )

    [mid] => 405
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 405)
    [result3] => Resource id #24
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 7
            [forename] => Ken
            [surname] => Benyon
        )

    [vid] => 7
    [sn] => Benyon
    [fn] => Ken
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 7)&&(match_id > 399))
    [result2] => Resource id #25
    [row2] => Array
        (
            [match_id] => 431
        )

    [mid] => 431
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 431)
    [result3] => Resource id #26
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 7
            [forename] => Ken
            [surname] => Benyon
        )

    [vid] => 7
    [sn] => Benyon
    [fn] => Ken
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 7)&&(match_id > 399))
    [result2] => Resource id #25
    [row2] => Array
        (
            [match_id] => 431
        )

    [mid] => 431
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 431)
    [result3] => Resource id #26
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 7
            [forename] => Ken
            [surname] => Benyon
        )

    [vid] => 7
    [sn] => Benyon
    [fn] => Ken
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 7)&&(match_id > 399))
    [result2] => Resource id #25
    [row2] => Array
        (
            [match_id] => 431
        )

    [mid] => 431
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 431)
    [result3] => Resource id #26
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 13
            [forename] => John
            [surname] => Budd
        )

    [vid] => 13
    [sn] => Budd
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 13)&&(match_id > 399))
    [result2] => Resource id #29
    [row2] => Array
        (
            [match_id] => 404
        )

    [mid] => 404
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 404)
    [result3] => Resource id #30
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 13
            [forename] => John
            [surname] => Budd
        )

    [vid] => 13
    [sn] => Budd
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 13)&&(match_id > 399))
    [result2] => Resource id #29
    [row2] => Array
        (
            [match_id] => 404
        )

    [mid] => 404
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 404)
    [result3] => Resource id #30
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 13
            [forename] => John
            [surname] => Budd
        )

    [vid] => 13
    [sn] => Budd
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 13)&&(match_id > 399))
    [result2] => Resource id #29
    [row2] => Array
        (
            [match_id] => 404
        )

    [mid] => 404
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 404)
    [result3] => Resource id #30
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Undefined variable: query
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 13
            [forename] => John
            [surname] => Budd
        )

    [vid] => 13
    [sn] => Budd
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 13)&&(match_id > 399))
    [result2] => Resource id #29
    [row2] => Array
        (
            [match_id] => 423
        )

    [mid] => 423
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 423)
    [result3] => Resource id #31
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 61:
Query:
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
            [PHP_SELF] => /lapsed_match_entrants.php
            [REQUEST_TIME] => 1328727174
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [page_title] => Lapsed Match Entrants (L)
    [raw_comments] => Mk1.
    [mod_comments] => Mk1.
    [referer] => HTTP_REFERER not set.
    [dev] => 
    [live] => 
    [email] => tcbuttle@btinternet.com
    [dbc] => Resource id #5
    [module_name] => lapsed_match_entrants.php
    [querya] => SELECT version FROM module WHERE (module_name = 'lapsed_match_entrants.php')
    [resulta] => Resource id #6
    [rowa] => Array
        (
            [version] => 0
        )

    [vn] => 0
    [url] => http://www.midkentgolfclub.co.uk
    [baseurl] => http://www.midkentgolfclub.co.uk
    [HTTP_SESSION_VARS] => Array
        (
        )

    [_SESSION] => Array
        (
        )

    [fname] => 
    [css_path] => 
    [css_print_path] => 
    [writer] => 
    [admin] => 0
    [a] => td-even
    [b] => td-odd
    [c] =>  style="color:rgb(119,136,153,"
    [tbclass] => td-even
    [_vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                    [forename] => 
                    [comment] => 
                    [telephone_no] => 
                    [guest] => 
                )

        )

    [vets] => Array
        (
            [0] => Array
                (
                    [vet_id] => 
                    [surname] => 
                    [initials] => 
                    [forename] => 
                    [handicap] => 
                    [active] => 
                    [year_paid] => 
                )

        )

    [open_teams] => Array
        (
            [0] => Array
                (
                    [vets_open_team_id] => 
                    [vets_open_team_name] => 
                    [vets_open_id] => 
                    [contact_id] => 
                    [host_id] => 
                    [tee] => 
                    [tee_off_time] => 
                    [points_scored] => 
                    [test_tot] => 
                )

        )

    [current_yyyy] => 2012
    [this_year] => 2012
    [next_year] => 2013
    [last_year] => 2011
    [current_mm] => 2
    [current_dd] => 8
    [current_day_name] => Wednesday
    [current_month_name] => February
    [now_unix] => 1328659200
    [increment_version] => Y
    [div4w] => 700
    [div4h] => 500
    [div4l] => 180
    [div4t] => 0
    [div5h] => 150
    [div5w] => 200
    [div5t] => 0
    [div5l] => 930
    [div6h] => 200
    [div6l] => 930
    [div6w] => 200
    [div6t] => 300
    [thorpe_hall] => 15
    [friendly] =>  Friendly 
    [league] =>  League 
    [home] =>  Home
    [away] =>  Away
    [query1] => SELECT vet_id, forename,surname FROM vet_basic WHERE (year_paid != 2012)
    [result1] => Resource id #9
    [row1] => Array
        (
            [vet_id] => 13
            [forename] => John
            [surname] => Budd
        )

    [vid] => 13
    [sn] => Budd
    [fn] => John
    [query2] => SELECT match_id FROM match_vet WHERE ((vet_id = 13)&&(match_id > 399))
    [result2] => Resource id #29
    [row2] => Array
        (
            [match_id] => 423
        )

    [mid] => 423
    [query3] => SELECT club_id, DATE_FORMAT(match_date,'%D %b %Y'), type, venue FROM match_short WHERE (match_id = 423)
    [result3] => Resource id #31
    [row3] => 
    [cid] => 
    [md] => 
    [match_type] =>  League 
    [venue] =>  Away
    [query4] => SELECT club_name FROM club WHERE (club_id = )
    [result4] => 
    [row4] => 
    [club_name] => 
)


An error occurred in script '/home/claudebu/public_html/lapsed_match_entrants.php' on line 62:
mysql_fetch_row() expects parameter 1 to be resource, boolean given
Date/Time: 2-8-2012 18:52:54
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => TzLEhrxAvBUAAHd6zHMAAAAL
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [PHPSESSID] => 4f7cdbdba164326549227aff03e933b7
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/claudebu/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => no-cache
            [HTTP_CONNECTION] => close
            [HTTP_COOKIE] => PHPSESSID=4f7cdbdba164326549227aff03e933b7
            [HTTP_HOST] => www.midkentgolfclub.co.uk
            [HTTP_IF_MODIFIED_SINCE] => Sat, 25 Sep 2010 09:59:37 GMT
            [HTTP_PRAGMA] => no-cache
            [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
            [HTTP_X_CC_ID] => ccc01-01
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 38.107.179.208
            [REMOTE_PORT] => 44388
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /lapsed_match_entrants.php
            [SCRIPT_FILENAME] => /home/claudebu/public_html/lapsed_match_entrants.php
            [SCRIPT_NAME] => /lapsed_match_entrants.php
            [SERVER_ADDR] => 188.64.188.21
            [SERVER_ADMIN] => webmaster@midkentgolfclub.co.uk
            [SERVER_NAME] => www.midkentgolfclub.co.uk
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOF
Non veterans who have been selected to play matches. N.B. Thorpe Hall matches are not restricted to vets.
Lapsed Veteran Match Entered
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker Friendly Away Match vs West Malling on 10th Sep 2012
John Baker League Away Match vs on
John Baker League Away Match vs on
John Baker League Away Match vs on
Ken Benyon League Away Match vs on
John Budd League Away Match vs on