<?php
$banco = new mysqli (“localhost”, ” root “, “”, “bg_game”);
<?
resposta do xampp :
Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘ root ‘@’localhost’ (using password: NO) in C:\xampp\htdocs\estudonauta\includes\banco.php:10 Stack trace: #0 C:\xampp\htdocs\estudonauta\includes\banco.php(10): mysqli->__construct(‘localhost’, ‘ root ‘, Object(SensitiveParameterValue), ‘bg_game’) #1 {main} thrown in C:\xampp\htdocs\estudonauta\includes\banco.php on line 10