mardi 4 juillet 2017

How to Using if Else statement in Array

im trying create if else statement, but not working,

this is my code

    $selected = (array) $_POST[gejala];
    if($selected == "1"):
        print_msg('Belum ada gejala terpilih. <a href="?m=konsultasi">Kembali</a>');
else:
print_msg('agsjhdgashjgdajhsgd');

when im select 1 data but not displaying print_msg...

Aucun commentaire:

Enregistrer un commentaire