2
Hello, there is no mistake, however WAMP
does not save the information.
Code of cadastro_db.php
:
<?
include("conection.php");
$nome = $_POST['nome'];
$email = $_POST['email'];
$idade = $_POST['idade'];
$cidade = $_POST['cidade'];
$login = $_POST['login'];
$senha = $_POST['senha'];
$sql = mysql_query("INSERT INTO usuarios(nome, email, idade, cidade, login, senha, foto) value('$nome', '$email', '$idade', '$cidade', '$login', '$senha', '$foto')");
header("Location: index.php");
?>
Code of conection.php
:
<?
$db = mysqli_connect("localhost", "root", "");
mysqli_select_db($db, "login_senha");
?>
Grateful from now on.
Wamp is not the problem, Wamp means Windows, Apache, Mysql, Php. The problem was in using the mysqli API mixed with the mysql API. Wamp could not fail in this sense, since it is a set of software, which at most could fail is one of them separate :)
– Guilherme Nascimento