Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Eu tenho este sistema de cadastro e agora começou a dar erro ao cadastrar já olhei e não vejo ende está o erro alguem pode me ajudar?
O código é esse:
<?include "config.php";$conn= mysql_connect($host,$user,$pass);$db= mysql_select_db($banco);if($acao=="cadastrar"){$sql = mysql_query("INSERT INTO dglogin (id,login,senha,nome,profissao,email,trabalho,conselho,registro) VALUES('',$login','$senha','$nome','$profissao','$email','$trabalho','$registro','$conselho')") or die ("Erro no cadastro");echo "Usuário cadastrado com sucesso!!!";} elseif($acao=="remover"){$sql = mysql_query("DELETE FROM dglogin WHERE login='$login'") or die("Erro ao remover usuário");} elseif(!$acao) {echo "<div align=\"center\"> <center> <p> </p> <table border=\"0\" width=\"460\" bgcolor=\"#000000\" cellspacing=\"1\" cellpadding=\"0\"> <form action=\"usuarios.php?acao=cadastrar\" method=\"post\" name=\"dg_login_cadastro\"> <tr> <td width=\"100%\" bgcolor=#66CCFF> <font face=\"Verdana\" size=\"2\"><b> </b></font><span class='titulo'>Área de Cadastro</span></div></td> </tr> <tr> <td width=\"100%\" bgcolor=\"#FFFFFF\"> <table border=\"0\" width=100% cellspacing=\"0\" cellpadding=\"0\"> <tr> <td></td> <td width=140 class='titulonews'>Login:</td> <td width=156 height=\"25\"><input type=\"text\" name=\"login\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> <tr> <td></td> <td width=140 class='titulonews'>Senha:</td> <td width=156 height=\"25\"><input type=\"password\" name=\"senha\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> <tr> <td></td> <td class='titulonews'>Nome:</td> <td height=\"25\"><input type=\"text\" name=\"nome\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> <tr> <td></td> <td class='titulonews'>Profissão:</td> <td height=\"25\"><input type=\"text\" name=\"profissao\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> <tr> <td width=4></td> <td width=140 class='titulonews'>E-mail:</td> <td width=156 height=\"25\"><input type=\"text\" name=\"email\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> <tr> <td width=4></td> <td width=140 class='titulonews'>Local de Trabalho</td> <td width=156 height=\"25\"><input type=\"text\" name=\"trabalho\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> <tr> <td></td> <td class='titulonews'>Conselho:</td> <td height=\"25\"><input type=\"text\" name=\"conselho\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> <tr> <td></td> <td class='titulonews'>Nº Registro:</td> <td height=\"25\"><input type=\"text\" name=\"registro\" size=\"8\" style=\"font-family:fo Verdana; font-size: 9 pt; nt-weight: bold; border-style: double; border-width: 1;height: 20\"></td> </tr> </table> </td> </tr> </center> <tr> <td width=\"100%\" bgcolor=\"#FFFFFF\" height=\"25\"> <p align=center> <input name='cadastar' type='submit' class='imput' id='cadastar' value='cadastar'> <input name=\"limpa\" type=\"reset\" class='imput' style=\"font-family: value=\"Limpar\" Verdana; font-size: 9 pt; font-weight: bold; border-style: double; border-width: 1;height: 20\"> </p> </td> </tr> </table></div></form><br><br><br><div align=\"center\"> <center> </div></form>";}?>Carregando comentários...