0
I started to study a little about web development, but I have a problem trying to insert into the table. There is an error, when I click on a dps register, it displays this message in the browser :
 query("INSERT INTO nafcliente (nome,local) VALUES ('$nome' , '$local') ") or die ($mysqli->error); } 
That would be my index,
html
<html>
<head></head>
<body>
      <form action="process.php" method="POST">
            <input type="text" name="nome" placeholder="Digite seu nome" />
            <input type="text" name="local" placeholder="Digite seu endereço" />
            <input type="submit" name="Cadastrar" value="Cadastrar" />   
      </form>
</body>
</html>
This is my process.php page
<?php
$mysqli= new mysqli("localhost","root","","cad") or die(mysqli_error($mysqli));
if(isset($_POST['Cadastrar'])){
    $nome= $_POST['nome'];
    $local= $_POST['local'];
    $mysqli-> query("INSERT INTO cliente (nome,local) VALUES ('$nome' , '$local') ") or 
    die ($mysqli->error);
}
When inserting more information, edit the question and include it directly
– rnd_rss
You can leave, thanks for the warning
– jdev