[ad_1]
この警告を修正するのに苦労しています。 以下は私のコードです。
<?php require('db.php'); include("auth_session.php"); if(count($_POST)>0) { mysqli_query($con, "UPDATE senarai_penggerak set id='" . $_POST['id'] . "', loginid='" . $_SESSION['loginid'] ."', nama_pengguna='" . $_POST['nama_pengguna'] . "', jawatan='" . $_POST['jawatan'] . "' , tujuan='" . $_POST['tujuan'] . "', keluar='".$_POST['keluar']."', masuk='".$_POST['masuk']."' WHERE id='" . $_POST['id'] . "'"); $message = "Record Modified Successfully"; } $search_result = mysqli_query($con,"SELECT * FROM senarai_penggerak WHERE id='" . $_GET['id'] . "'"); $row= mysqli_fetch_array($search_result); ?> <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="css/dashboard.css"> <link rel="stylesheet" href="css/form.css"> <link rel="stylesheet" href="https://codepen.io/gymratpacks/pen/VKzBEp#0"> <link href='https://fonts.googleapis.com/css?family=Nunito:400,300' rel='stylesheet' type='text/css'> <style> </style> </head> <body> <div class="wrapper"> <div class="section"> <div class="top_navbar"> <div class="tigaline"> <a href="#"> <i class="fas fa-bars"></i> </a> </div> </div> <div class="container"> <h1><center>Daftar Keluar/Masuk</center></h1><br> <div class="row"> <div class="col-md-12"> <form name="frmUser" style="margin:130px" action = "" method="POST"> <div> <?php if(isset($message)) {echo $message;}?></div> <br> <fieldset> <label for="Nama">Nama:</label> <select id="nama" name="nama_pengguna" value="<?php echo $row['nama_pengguna']; ?>"> <option value="select" disabled selected>Sila Pilih</option> <option value="Mohd Shahrin Bin Ismail">Mohd Shahrin Bin Ismail</option> <option value="Mohd Asron Affandi Bin Ahmad Fisho">Mohd Asron Affandi Bin Ahmad Fisho</option> <option value="Kasyful Najwan Bin Mohd Kamal">Kasyful Najwan Bin Mohd Kamal</option> <option value="Hazirah Bt Jaafar<">Hazirah Bt Jaafar</option> <option value="Shafiq Ahmad Bin Mohammad Innus">Shafiq Ahmad Bin Mohammad Innus</option> <option value="Siti Nazieha Bt Mohd Nazri">Siti Nazieha Bt Mohd Nazri</option> <option value="Suhailawati Bt Jaafar">Suhailawati Bt Jaafar</option> <option value="Nur Adam Bin Ismail">Nur Adam Bin Ismail</option> <option value="Mohammad Aiman Bin Aminuddin">Mohammad Aiman Bin Aminuddin</option> <option value="Nur Izati Binti Ramli">Nur Izati Binti Ramli</option> </select> <label for="jawatan">Jawatan:</label> <select id="jawatan" name="jawatan" value="<?php echo $row['jawatan']; ?>"> <option value="select" disabled selected>Sila Pilih</option> <option value="Pegawai Teknologi Maklumat">Pegawai Teknologi Maklumat</option> <option value="Pen. Pegawai Teknologi Maklumat">Pen.Pegawai Teknologi Maklumat</option> <option value="Pembantu Tadbir">Pembantu Tadbir</option> <option value="Pembantu Awam">Pembantu Awam</option> <option value="Intern">Intern</option> </select> <label for="tujuan">Tujuan:</label> <textarea id="tujuan" name="tujuan" value="<?php echo $row['tujuan']; ?>"></textarea> <label for="jam_keluar">Jam Keluar:</label> <input type="datetime-local" id="jam_keluar" name="keluar" value="<?php echo $row['keluar']; ?>"> <label for="jam_masuk">Jam Masuk:</label> <input type="datetime-local" id="jam_masuk" name="masuk" value="<?php echo $row['masuk']; ?>"> </fieldset> <button type ="submit" style="font-size:24px" name="submit"><i class="fa fa-check"></i></button><br> <button type ="reset" style="font-size:24px" name="reset"><i class="fa fa-close"></i></button><br> </form> </div> </div>
私が試したこと:
グーグルとスタックオーバーフローで修正しようとしていますが、解決策が見つからないようです。
[ad_2]
コメント