Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'autoload.php';
- $sql = new Mysql;
- $query = $sql->SqlQuery("SELECT * FROM email WHERE status <> 'entregue'");
- $verificaLinha = mysql_num_rows($query);
- if ($verificaLinha != 0) {
- while ($array_result = mysql_fetch_array($query)) {
- $id = $array_result["id"];
- $nome = $array_result["nome"];
- $email = $array_result["email"];
- $code = $array_result["code"];
- $hashbanco = $array_result["hash"];
- $rastreia = new buscaEncomenda();
- $rastreia->validaCode($code);
- $hashatual = $rastreia->hash;
- if ($hashbanco != $hashatual) {
- $cronEmail = new cronEmail($email, $code, $nome);
- $cronEmail->enviaEmail();
- } else {
- echo "faz nada";
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement