Advertisement
baconcombanana

Untitled

Dec 4th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2. $host = 'localhost';
  3. $user = 'user_name';
  4. $pass = '';
  5. $bd = 'bd_name';
  6. $conexao = mysql_connect($host, $user, $pass) or die(mysql_error());
  7. mysql_select_db($bd) or die(mysql_error());
  8.  
  9. $cod = '001-12-16';
  10. $nome = $_POST['name'];
  11. $apelido = $_POST['apelido'];
  12. $rg = $_POST['rg'];
  13. $rg1 = $_POST['rg1'];
  14. $cpf = $_POST['cpf'];
  15. $cpf1 = $_POST['cpf1'];
  16. $uf = $_POST['uf'];
  17. $cro = $_POST['cro'];
  18. $email = $_POST['email'];
  19. $senha = $_POST['senha'];
  20. $indica = $_POST['indica'];
  21.  
  22. $rg = $rg."-".$rg1;
  23. $cpf = $cpf."-".$cpf1;
  24. $sql = mysql_query("INSERT INTO dentista(dent_cod, dent_name, dent_ap, dent_rg, dent_cpf, cro_uf, cro, dent_email, dent_senha, indique) VALUES("$cod", "$nome", "$apelido", "$rg", "$cpf", "$uf", "$cro", "$email", "$senha", "$indica")");
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement