0
I’m having trouble sending the data passed by the form + php,and appear in the database.... When I go to phpMyadmin only the data that once I set up manual is not being dynamic to display in phpMyadmin,... Connection
$servidor = "localhost";
$user = "root";
$pass = "root";
$banco = "cadastro";
//criar conexao
$conn = mysql_connect($servidor,$user,$pass,$banco)or die(mysql_error());
echo ("enviado com sucesso");
mysql_select_db($banco)or die(mysql_error());
The php variables
$Cobranca = $_POST['Cobranca'];
$Conducao = $_POST['Conducao'];
$conforto = $_POST['conforto'];
$Conservacao = $_POST['Conservacao'];
$CumprimentoParada = $_POST['CumprimentoParada'];
$Distancia = $_POST['Distancia'];
$email = $_POST['email'];
$Entrega = $_POST['Entrega'];
$horario = $_POST['horario'];
$Itinérario = $_POST['Itinérario'];
$Limpeza = $_POST['Limpeza'];
$Manutencao = $_POST['Manutencao'];
$phone = $_POST['phone'];
$tCobrador = $_POST['tCobrador'];
$Tratamento = $_POST['Tratamento'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$erro = 0;
Inserting in the database called all variables
$insereDados = mysql_query("INSERT INTO respostas(Cobranca,Conducao,conforto,Conservacao,CumprimentoParada)VALUES('$Cobranca','$Conducao','$conforto','$Conservacao')");
I think I already know what it is but it says there which is the error message that is appearing
– user45474
something else make better use of case sensitive in their variables
– user45474
Type,displays - echo ("successfully uploaded"); but in phpMyadmin I click select,or Update ,in the SQL part in phpMyadmin,displays the most specific #1064 error when I click update
– Ricardo Mendes
I think the answer below renponde your question
– user45474