Error executing mysqli_query() in BD Select

Asked

Viewed 200 times

0

When I will register something in the database of this

inserir a descrição da imagem aqui

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);

1 answer

1


  • @rray corrected ! rs

Browser other questions tagged

You are not signed in. Login or sign up in order to post.