I'm still new to php, here's the code, here's giving syntax error
<?php
function conexao(){
$banco = "curosphp_mysql";
$usuario = "root";
$senha = "";
$host = "localhost";
mysqli_select_db($conn, $banco);
}
conexao();
?>
Update:
<?php
function conexao(){
$banco = "curosphp_mysql";
$usuario = "root";
$senha = "";
$host = "localhost";
$conn = mysqli_connect($host, $usuario, $senha, $banco);
mysqli_select_db($conn, $banco);
}
conexao();
?>