Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $numeroPedido = $_POST['numeroPedido'];
  2. $senha = $_POST['senha'];
  3.  
  4. function confirmaPedido ($conexao, $numeroPedido, $senha) {
  5. $querySenha = mysqli_query($conexao, "Select senha from adm where senha = $senha");
  6. if ($senha = $querySenha) {
  7. $queryApaga = mysqli_query($conexao, "delet from pedido where pedido = $numeroPedido");
  8. echo "Pedido Finalizado com sucesso! o pedido apagado foi o numero: ". $numeroPedido;
  9. }
  10. else {
  11. echo "Senha Inválida, tente novamente!";
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement