generate_hash.php 391 B

123456789
  1. <?php
  2. $db = new mysqli('especificosba.com.ar', 'especificosba', 'howdoiturnthison', 'mailing');
  3. #$stmt=$db->prepare('select sha1(concat(id,floor(UNIX_TIMESTAMP()*rand()),mail)) from mails_datos where mail="tatii.oxo@gmail.com"');
  4. $stmt=$db->prepare('select hash from mails_datos where mail="tatii.oxo@gmail.com"');
  5. $stmt->bind_result($hash);
  6. $stmt->execute();
  7. $stmt->fetch();
  8. echo $hash;
  9. ?>