Enviado em 18/07/2017 - 17:23h
Fiz este codigo porem quando vou executar ele fala que $serie2 $outros2 $cantor2 $estilo2 $musica2 e $prefere2 não foram definidas. O que eu estou fazendo de errado ?<?phpIf ($heho=="Heterosexual" && $sexo=="Homem")
{
$serie2 = mysql_query ('select serie FROM `cadastro_hetero`` where sexo = `Feminino`');
$outros2 = mysql_query ('select outros FROM `cadastro_hetero` where sexo = `Feminino`');
$cantor2 = mysql_query ('select cantor FROM `cadastro_hetero` where sexo = `Feminino`');
$estilo2 = mysql_query ('select musica FROM `cadastro_hetero` where sexo = `Feminino`');
$musica2 = mysql_query ('select estilo FROM `cadastro_hetero` where sexo = `Feminino`');
$prefere2 = mysql_query ('select prefere FROM `cadastro_hetero` where sexo = `Feminino`');
}
else{}
If ($heho=="Heterosexual" && $sexo=="Mulher")
{
$serie2= mysql_query ('Select serie FROM `cadastro_hetero` where sexo = `Masculino`');
$outros2= mysql_query ('Select outras FROM `cadastro_hetero` where sexo = `Masculino`');
$cantor2= mysql_query ('Select cantor FROM `cadastro_hetero` where sexo = `Masculino`');
$estilo2= mysql_query ('Select musica FROM `cadastro_hetero` where sexo = `Masculino`');
$musica2= mysql_query ('Select estilo FROM `cadastro_hetero` where sexo = `Masculino`');
$prefere2= mysql_query ('Select prefere FROM `cadastro_hetero` where sexo = `Masculino`');
}
else{}
If ($heho=="Homosexual" && $sexo=="Homem")
{
$serie2 = mysql_query ('Select serie FROM `cadastro_homo` where sexo = `Masculino`');
$outros2 = mysql_query ('Select outros FROM `cadastro_homo` where sexo = `Masculino`');
$cantor2 = mysql_query ('Select cantor FROM `cadastro_homo` where sexo = `Masculino`');
$estilo2 = mysql_query ('Select musica FROM `cadastro_homo` where sexo = `Masculino`');
$musica2 = mysql_query ('Select estilo FROM `cadastro_homo` where sexo = `Masculino`');
$prefere2 = mysql_query ('Select prefere FROM `cadastro_homo` where sexo = `Masculino`');
}
else{}
If ($heho=="Homosexual" && $sexo=="Mulher")
{
$serie2== mysql_query ('Select serie FROM `cadastro_homo` where sexo = `Feminino`');
$outros2== mysql_query ('Select outros FROM `cadastro_homo` where sexo = `Feminino`');
$cantor2== mysql_query ('Select cantor FROM `cadastro_homo` where sexo = `Feminino`');
$estilo2== mysql_query ('Select musica FROM `cadastro_homo` where sexo = `Feminino`');
$musica2== mysql_query ('Select estilo FROM `cadastro_homo` where sexo = `Feminino`');
$prefere2== mysql_query ('Select prefere FROM `cadastro_homo` where sexo = `Feminino`');
}
else
{}
if(strcasecmp($serie, $serie2) == 0)
{
$luan1=1;
}
else
{
$luan1=0;
}
if(strcasecmp($outros, $outros2) == 0)
{
$luan2=1;
}
else
{
$luan2=0;
}
if(strcasecmp($cantor, $cantor2) == 0)
{
$luan3=1;
}
else
{
$luan5=0;
}
if(strcasecmp($estilo, $estilo2) == 0)
{
$luan4=1;
}
else
{
$luan4=0;
}
if(strcasecmp($musica, $musica2) == 0)
{
$luan5=1;
}
else
{
$luan5=0;
}
if(strcasecmp($prefere, $prefere2) == 0)
{
$luan6=1;
}
else
{
$luan6=0;
} ?>
O que é o THP na configuração de RAM do Linux e quando desabilitá-lo
Comparação entre os escalonadores BFQ e MQ-Deadline (acesso a disco) no Arch e Debian
Conciliando o uso da ZRAM e SWAP em disco na sua máquina
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Como unir duas coleções de ROMs preservando as versões traduzidas (sem duplicatas)
Como instalar o Telegram Desktop no Ubuntu 24.04
Overclocking Permanente para Drastic no Miyoo Mini Plus
Problemas de chaves (/usr/share/keyrings) no Debian
Converter os repositórios Debian para o novo formato com as chaves
Browser/Placa de vídeo trava Ubuntu 22.04 (1)
Salvar estado da VM no virt-manager [RESOLVIDO] (5)