0
When I will register something in the database of this
PHP code
<?php
session_start();
include_once("../seguranca.php");
include_once("../conexao.php");
$nome_nivel = $_POST["nome_nivel"];
$query = mysqli_query("INSERT INTO nivel_acessos (nome_nivel, created) VALUES ('$nome_nivel', NOW())");
?>
Connection
<?php
$servidor = "localhost";
$usuario = "root";
$senha = "";
$dbname = "tcc";
//Criar a conexao
$conn = mysqli_connect($servidor, $usuario, $senha, $dbname);
@rray corrected ! rs
– rbz