Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function a() {require 'bdd.php';
- $sel = $pdo->prepare("SELECT status_cr FROM status_traitement");
- $sel->execute();
- $sel->setFetchMode(PDO::FETCH_ASSOC);
- $tab=$sel->FETCH();
- echo "<pre>";
- print_r($tab);
- echo "</pre>";
- if ($tab['status_cr']==1){echo 'traitement impossible pour linstant';b();}
- else{echo 'traitement en cours';}
- ;}
- function b (){echo 'nouvelle tentative dans 3 secondes'; sleep(3); a(); }
- a();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement