<div class="profil"> <label>HOŞGELDİNİZ:</label>HALİL BARIM </div> <div id="profilTools"> <a class="commentYazilarim" href="adminTools.php">Geri Dön</a> </div> </div> <br> <form name="form" method="post" > <?php $id = $_GET['id']; $data = searchId($id); foreach ($data as $key) { ?> <div id="sentBox"> <div id="upperBox"> <label id="label">BAŞLIK</label> <input id="inputHead" name="inputHead" type="text" value="<?php echo $key->head; ?> "> <input id="submitButton" type="submit" value="Kaydet"> </div> <div id="middleBox"> <textarea id="textAreaBox" name="textAreaBox" ><?php
}); </script> </head> <body> </body> </html> <?php include "connect.php"; if (!empty($_POST["ara"])) { $search = searchId($id); if ($search) { ?> <table cellpadding="10" style="border:1px solid #ccc"> <tr> <td style="border:1px solid #ccc"><div style="width:100px; color:red;">Resim</div></td> <td style="border:1px solid #ccc"><div style="width:100px; color:red;">Musteri Adi</div></td> <td style="border:1px solid #ccc"><div style="width:100px; color:red;">Soyadi</div></td> <td style="border:1px solid #ccc"><div style="width:150px; color:red;">Cep no</div></td> <td style="border:1px solid #ccc"><div style="width:150px; color:red;">E-mail</div></td> <td style="border:1px solid #ccc"><div style="width:610px; color:red;">not</div></td> </tr> </table> <?php foreach ($search as $row) {
<div id="head"> <div class="childHead">id</div> <div class="childHead">Ad</div> <div class="childHead">Soyad</div> <div class="childHead">Cep</div> <div class="childHead">Email</div> <div class="childHead">Not</div> <div class="childHead">Eylem</div> </div> <?php if (isset($_GET['id'])) { $search = $_GET['id']; //echo $search; $data = searchId($search); foreach ($data as $key) { ?> <div id="input"> <div class="inp"><input id="userid" class="text" name="userid" disabled type="text" value="<?php echo $key->id; ?> "></div> <div class="inp"><input id="userName" class="text" name="userName" type="text" value="<?php echo $key->ad; ?> "></div> <div class="inp"><input id="userSurname" class="text" name="userSurname" type="text" value="<?php echo $key->soyad;