This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM (SELECT @rownum := @rownum + 1 AS rank ,t.* FROM t_kontrak t, (SELECT @rownum := 0) r ORDER BY id ASC) tr | |
WHERE tr.rank IN | |
( | |
SELECT (rank-1) AS rank FROM (SELECT @rownumdlm := @rownumdlm + 1 AS rank ,t.id FROM t_kontrak t, (SELECT @rownumdlm := 0) r ORDER BY id ASC) td WHERE td.id=1906 | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Longterm Invest Crypto* | |
Total Perkiraan IDR 2 Juta | |
Gold : Bitcoin 0,001 ,Avax 1 | |
Total Perkiraan IDR 2 Juta-an | |
Coin : Cardano 30, Vechain 100 | |
Token : CRO 50, Chainlink 1, Travala 10, Chilliz 30, Verasity 200 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// selecting required element | |
const element = document.querySelector(".pagination ul"); | |
let totalPages = 5; | |
let page = 1; | |
//calling function with passing parameters and adding inside element which is ul tag | |
if(totalPages < 6){ | |
element.innerHTML = createPaginationUnderSix(totalPages, page); | |
}else{ | |
element.innerHTML = createPagination(totalPages, page); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Koneksi | |
$host = "localhost"; | |
$user = "root"; | |
$pass = ""; | |
$db = "db_generate"; | |
$mysqli = new mysqli($host, $user, $pass, $db); | |
// Generate Key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Judul Halaman</title> | |
</head> | |
<body> | |
<h1>Ini Heading</h1> | |
<p>Ini paragraph.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nim | Nilai | |
-------------------- | |
16.11.0347 10 | |
16.11.0400 60 | |
16.11.0339 60 | |
16.11.0377 40 | |
16.11.0361 80 | |
16.11.0358 60 | |
16.11.0344 30 | |
16.11.0393 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//cari id terakhir ditanggal hari ini | |
$query1 = "SELECT max(no_pengiriman) as maxID FROM tbl_pengiriman WHERE no_pengiriman LIKE '$today%'"; | |
$hasil = $mysqli->query($query1); | |
$data = mysqli_fetch_array($hasil); | |
$idMax = $data['maxID']; | |
//setelah membaca id terakhir, lanjut mencari nomor urut id dari id terakhir | |
$NoUrut = (int) substr($idMax, 8, 4); // ambil 4 digit dimulai dari index ke 8 |