Advertisement
Guest User

Untitled

a guest
Nov 18th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. <?php
  2.  
  3. $odbc_dsnname = "ini3_py_account";
  4. $odbc_dsnuser = "sa";
  5. $odbc_dsnpass = "123456";
  6.  
  7.  
  8.  
  9. $user_to_add = $_POST['login'];
  10. $user_password = $_POST['senha'];
  11. $sex = $_POST['select'];
  12. $dataniver = $_POST['aniversario'];
  13. $cep = $_POST['cep'];
  14. $email = $_POST['email'];
  15. $pergunta = $_POST['pergunta'];
  16. $resposta = $_POST['resposta'];
  17. $nome = $_POST['nome'];
  18. $sobrenome = $_POST['sobrenome'];
  19.  
  20.  
  21. $connection = odbc_connect($odbc_dsnname, $odbc_dsnuser, $odbc_dsnpass) or die ( "Could Not Connect to ODBC Database!" );
  22.  
  23.  
  24. if(!($connection))
  25. {
  26. echo "Conectado com sucesso";
  27. }
  28. else
  29. {
  30. echo "error";
  31. if($resource = odbc_exec($connection, "exec SP_PANGYA_REGIST '10', '$sex', '$dataniver', '$cep', '$user_to_add', '$user_password', '$email', '$pergunta', '$resposta', '$nome', '$sobrenome'"))
  32. {
  33. print('');
  34. odbc_exec($connection, "exec SP_PANGYA_ACTIVATE '$user_to_add'");
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement