bence seo açısından Url den gelen daha mantıklı
https://developers.google.com/search/docs/advanced/crawling/localized-versions#example_2
https://code.visualstudio.com/docs/editor/editingevolved#_bracket-matching
https://stackoverflow.com/questions/30097634/how-do-i-jump-to-a-closing-bracket-in-visual-studio-code?answertab=votes#tab-top
Türkçe klavyede Windows için Ctrl + Shift + ç yaparak aralarında geçiş yapabilir.
Eğer bootstrap 5 kullanıyorsan data-toggle gibi attributeleri data-bs-toggle şeklinde adlandırmalısın.
Ek olarak açılacak olan div'e aria-labelledby="menuAc" button'un idsini vermelisin.
<div class="dropdown-menu" aria-labelledby="menuAc" id="siteMenusu">
https://getbootstrap.com/docs/5.0/components/dropdowns/#single-button
Bildiğim kadarıyla hepsiburada React kullanıyor.React, Angular ve Vue kullanarak bu tarz SPA proje geliştirebilirsin.
değer string ise birleştirir.integer ise toplama işlemi yapar.
{{ parseInt(numberOne) + parseInt(numerSecond) }}
<button>Basılı tut</button>
$('button').on('mousedown mouseup', function(e) {
if (e.type == "mousedown") {
$(this).css("background-color", "#007bff")
} else {
$(this).css("background-color", "#28a745")
}
});
button {
background-color: #28a745;
border: none;
padding: 0.375rem 0.75rem;
border-radius: 0.25rem;
}
böyle dene
// ...
$rand=uniqid(true);
$classIMG->file_new_name_body = $rand;
$classIMG->file_new_name_ext = $uzanti;
// ...
2021-08-19 tarihi ve sonraki 7 günlük veriyi çekmek için
SELECT * FROM `tablo` WHERE DATE_SUB("2021-08-19", INTERVAL -7 DAY) >= `tarih` AND "2021-08-19" <= `tarih`
2021-08-19 tarihi ve önceki 7 günlük veriyi çekmek için
SELECT * FROM `tablo` WHERE DATE_SUB("2021-08-19", INTERVAL 7 DAY) <= `tarih` AND "2021-08-19" >= `tarih`;
bugün ve önceki 7 günlük veriyi çekmek için
SELECT * FROM `tablo` WHERE DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= `tarih` AND CURDATE() >= `tarih`;
$array = [
[
"TOPLAM_ADET" => 8130,
"HAREKET_TARIHI" => "2021-08-09 00:00:00.000",
"S_FLOAT2" => "7.5999999999999996",
"S_FLOAT3" => "2.1669999999999998",
"dk" => "79,406",
"bant_kisi" => 25,
"total_kapasite" => "13,500",
"verim" => "588",
],
[
"TOPLAM_ADET" => 113,
"HAREKET_TARIHI" => "2021-08-07 00:00:00.000",
"S_FLOAT2" => "7.2300000000000004",
"S_FLOAT3" => "2.3300000000000001",
"dk" => "1,080",
"bant_kisi" => 12,
"total_kapasite" => "6,480",
"verim" => "17",
]
];
uasort($array, function($x, $y){
if ($x["HAREKET_TARIHI"] == $y["HAREKET_TARIHI"]) {
return 0;
}
return strtotime($x["HAREKET_TARIHI"]) - strtotime($y["HAREKET_TARIHI"]);
});
print_r($array);