mardi 10 septembre 2019

how to initials to gender

please I'm still a beginner, how to give initials to gender. when I import the form "L" then the table will appear "Laki-laki" and "P" Perempuan.

when I import who appears "Perempuan" I try to enter another letter but still the "Perempuan" who appears .

$jk = $key->jeniskelamin;
if($jk == "L") { 
    $jeniskelamin = "Laki-laki"; 
} else { 
    $jeniskelamin = "Perempuan"; 
}

I change it to if ($ jk = 'L') ... then it will appear "Laki-laki" but when I enter the other letters that appear fixed" Laki-laki "

how do you display it? thank you



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/32zTWTt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire