first commit
This commit is contained in:
12
dev/eksekusi.php
Normal file
12
dev/eksekusi.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
include("app/koneksi.php");
|
||||
$d=pg_query("SELECT id FROM data_user");
|
||||
while(($r=pg_fetch_array($d)) !== FALSE) {
|
||||
$id=$r[0];
|
||||
$options = [
|
||||
'cost' => 10,
|
||||
];
|
||||
$hashid=password_hash($id,PASSWORD_DEFAULT,$options);
|
||||
pg_query("UPDATE data_user SET tanggal_keluar='$hashid' WHERE id=$id");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user