Fatal error: Uncaught Error: Call to a member function query() on null in C:\wwwroot\127.0.0.1\matchdata\counting.php:101 Stack trace: #0 C:\wwwroot\127.0.0.1\matchdata\seatscore.php(40): scorecount('1nt', 'no', '3', '10', 'east') #1 {main} thrown in C:\wwwroot\127.0.0.1\matchdata\counting.php on line 101