Warning: mysqli_select_db () expects parameter 1 to be mysqli, string given in C: \ xampp \ htdocs \ lojavirtual \ connect.php on line 3 Could not connect
Warning: mysqli_select_db () expects parameter 1 to be mysqli, string given in C: \ xampp \ htdocs \ lojavirtual \ connect.php on line 3 Could not connect
You should be mixing mysqli
with mysql
or reporting wrong parameter.
Use this:
$conexao = mysqli_connect("host","usuario","senha") or die ("Erro ao conectar ao banco");
mysqli_select_db($conexao, "nome_do_banco") or die ("Banco não encontrado");