Enviado em 15/07/2017 - 01:49h
Preciso comparar dados digitados no navegador com dados de uma tabela MySQL .<?php
//cadastro
$nome= $_POST ["tnome"];
$Ano= $_POST ["tserie"];
$Celular= $_POST ["tcelular"];
$sexo= $_POST ["tsexo"];
$interesse= $_post ["tinteresse"];
//perguntas
$serie = $_POST['Serie'];
$outros = $_POST['toutros'];
$cantor = $_POST['tcantor'];
$estilo = $_POST['Musical'];
$musica = $_POST['tmusica'];
$prefere = $_POST['tprefere'];
//banco de dados perguntas
$serie2 = mysql_query("SELECT * FROM tabela ORDER BY nome ASC ");
$outros2 = mysql_query("SELECT * FROM tabela ORDER BY nome ASC ");
$cantor2 = mysql_query("SELECT * FROM tabela ORDER BY nome ASC ");
$estilo2 = mysql_query("SELECT * FROM tabela ORDER BY nome ASC ");
$musica2 = mysql_query("SELECT * FROM tabela ORDER BY nome ASC ");
$prefere2 = mysql_query("SELECT * FROM tabela ORDER BY nome ASC ");
if($_POST['$interesse'] == ['Homem'])
show all $sexo "Masculino" otherusers
elseif ($_POST['$interese' == ['Mulher'])
show all $sexo "feminino" otherusers
$naveg = $_POST[cadastro];
if(strcasecmp($serie, $serie2) != 0)
{
Return true;
}
else
{
Return false;
}
if(strcasecmp($outros, $outros2) != 0)
{
Return true;
}
else
{
Return false;
}
if(strcasecmp($cantor, $cantor2) != 0)
{
Return true;
}
else
{
Return false;
}
if(strcasecmp($estilo, $estilo2) != 0)
{
Return true;
}
else
{
Return false;
}
if(strcasecmp($musica, $musica2) != 0)
{
Return true;
}
else
{
Return false;
}
if(strcasecmp($prefere, $prefere2) != 0)
{
Return true;
}
else
{
Return false;
}
?>
Como escolher o melhor escalonador de CPU para melhorar o desempenho da máquina
Curiosidade sobre DOOM Guy e Isabelle de Animal Crossing
Inicializando servidor Ubuntu na AWS e rodando apache em Container
Instalando TeamViewer no Debian 12
Conheça o Octopi, outro frontend para o Pacman com acesso ao AUR (Arch Linux e derivados)
Terminal transparente no Debian 12 com interface i3wm usando Xfce4-Terminal e Compton
Ubuntu simplesmente morreu (8)
Como colocar uma assinatura digital em um código compilado ! (2)