Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "conexao.php";
- $nome = strip_tags($_POST['nome']);
- $pesquisar = mysql_query("SELECT * FROM listaredxote WHERE nome = '$nome'");
- $contagem = mysql_num_rows($pesquisar);
- if($nome != "" && $contagem != 1){
- mysql_query("INSERT INTO listaredxote (nome) VALUES ('$nome')");
- echo "Cadastrado com sucesso";
- }
- ?>
Add Comment
Please, Sign In to add comment