Advertisement
usernam3_

PHP_code_debug_2

Aug 27th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. $query_storedProcedure =
  2.  
  3. "DELIMITER $$
  4. CREATE PROCEDURE atualizaTurnos()
  5. BEGIN
  6.  
  7. DECLARE contador INT DEFAULT 0;
  8.  
  9. REPEAT
  10.  
  11. WHILE contador < 10 DO
  12. DO sleep(1);
  13. SET contador = contador + 1;
  14.  
  15. END WHILE;
  16.  
  17. SET contador = 0;
  18.  
  19. SET turnos = turnos + 3;
  20.  
  21. UNTIL (1!=1)
  22. END REPEAT;
  23.  
  24. END $$
  25. DELIMITER ;";
  26.  
  27. mysqli_query($conexao,$query_storedProcedure);
  28. mysqli_query($conexao,"CALL atualizaTurnos();");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement