David 10 년 전
부모
커밋
64fb1313a5
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      back/generate_hash.php

+ 7 - 1
back/generate_hash.php

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