Warning: Cannot modify header information - headers already sent by (output started at D:\OSPanel\domains\GamingSocial.bb\api\config.php:8) in D:\OSPanel\domains\GamingSocial.bb\interface\register.php on line 34
I would not recommend this script (maybe only for prototyping, not for production).
There are tons of security issues, there are no prepared statements and there are mixed HTML and php code (spaghetty code).
I didn’t look at the code in detail but this error occurs because there are probably some extra blank spaces (whitespaces) or sending the output before calling the header (probably in config.php).
I just look into code. There are extra blank space in config.php at line 8. Just delete it (delete every empty space till ?> )