saya ingin membuat button group untuk skala perbandingan metode AHP
Asked
Active
Viewed 53 times
0
-
2Post has to be in English. Avoiding sharing code as images. – nice_dev Feb 04 '23 at 05:22
2 Answers
0
?php
include 'koneksi.php';
if(isset($_POST['submit'])) {
// ambil id pasien di kolom id pendaftaran
$getMaxId = mysqli_query($conn, "SELECT MAX(RIGHT(id_pendaftaran, 5)) AS id FROM tb_pendaftaran ");
$d = mysqli_fetch_object($getMaxId);
$generateId = 'p' .date('Y') .sprintf("%05s", $d->id = 1);
//proses insert
$insert = mysqli_query($conn, "INSERT INTO tb_pendaftaran VAlUES(
'".$generateId."',
'".$_POST['nm_pasien'].",
'".$_POST['nik'].",
'".$_POST['tgl_lahir'].",
'".$_POST['alamat'].",
'".$_POST['nm_ibu'].",
'".$_POST['no_tlp'].",
'".$_POST['tgl_daftar'].",
'".$_POST['poli'].",
)");
if($insert){
echo 'jos';
}else{
echo 'asu' .mysqli_error($conn);
}
# code...
}
?

toyota Supra
- 3,181
- 4
- 15
- 19
-
This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/34800213) – Yaroslavm Aug 11 '23 at 09:04
-1
change the code to this format
<label class="btn btn-primary">
<input type="radio" name="skala" id="1" checked>1
</label>
change input checked="checked"
to input checked="true"
or input checked
the checked
property's default value is true

0MUHAMMEDIRFAN
- 66
- 8