-1
$nome=$_POST['nome'];
$sobrenome=$_POST['sobrenome'];
$email=$_POST['email'];
$senha=$_POST['senha'];
$sql = mysqli_query("INSERT INTO usuarios (nome, sobrenome, email, senha)
VALUES ('$nome', '$sobrenome', '$email', '$senha')");
The mistake you’re making: Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/u158302715/public_html/bemvindo.php on line 40
thanks, but in case the connection is already established, but when it arrives in mysqli_query gives this error
– joao
Because you are not passing the parameter to the function you called here:
mysqli_query("INSERT INTO usuarios (nome, sobrenome, email, senha)
VALUES ('$nome', '$sobrenome', '$email', '$senha')");
it would have to be something likemysqli_query($con, "INSERT INTO usuarios (nome, sobrenome, email, senha)
VALUES ('$nome', '$sobrenome', '$email', '$senha')");
– KhaosDoctor