-1
Error that appears: Fatal error: Uncaught Error: Function name must be a string in C: xampp htdocs developed rs_alpinismo salva_mensagem.php:5 Stack trace: #0 {main} thrown in C: xampp htdocs developed rs_alpinismo salva_mensagem.php on line 5
Code I did to send the data to mysql(phpmyadmin) local server:
first code: php connection.:
<?php
$servidor = "localhost";
$usuario = "root";
$senha = "";
$dbname = "areadecontatos";
// Criar a conexão
$conn = mysqli_connect($servidor, $usuario, $senha, $dbname);
?>
Second code salva_mensagem.php:
<?php
include_once('conexao.php');
$name = $_POST('nome');
$email = $_POST('email');
$menssagem = $_POST('menssagem');
$msg_contato = "INSERT INTO mensages_contato(nome, email, menssage) VALUES ('$nome', '$email', '$email', NOW())";
$resultado_msg_contato = mysqli_query($conn, $resultado_msg_contato)
?>
Html code action:
I am willing to send to the local database, the following data
Name Email Message
identification on the form of each:
name="nome"
name="email"
name="menssagem"
If anyone can help!!!!