NomisCZ / hlstatsx-community-edition

HLstatsX Community Edition - PHP 7 and GeoIP2 supported
GNU General Public License v2.0
83 stars 48 forks source link

mysql_num_rows should be replaced by mysqli_num_rows #47

Closed Electr0 closed 4 years ago

Electr0 commented 4 years ago

Describe the bug mysql_num_rows should be replaced by mysqli_num_rows

To Reproduce Steps to reproduce the behavior:

  1. Go to search in this repo put mysql_num_rows and see files have mysql_num_rows
  2. i was have errors in error.log of hlstats

2020/01/30 13:50:45 [error] 9509#9509: *350 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_num_rows() in /pages/dailyawardinfo.php:145 Stack trace:

0 /hlstats.php(224): include()

1 {main}

thrown in /pages/dailyawardinfo.php on line 145" while reading upstream, client: 54.36.149.25, server: hlstats.example.com, request: "GET /hlstats.php?mode=dailyawardinfo&award=972&game=l4d2&page=15 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.1-fpm.sock:", host: "hlstats.example.com"

Environment