Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- perbaikan dariku
- */
- include "lib.php";
- $id = isset($_GET['id'])?$_GET['id']:0;
- if($id!=0){
- $query = "select * from pelanggan where id_pelanggan = '$id'";
- $tampil = mysql_query($query);
- ($data = mysql_fetch_array($tampil);
- ?>
- <input type="text" name="id" value="<?php echo $data['id_pelanggan'];?>" /></br>
- <input name="nama" type="text" value="<?php echo $data['nama_pelanggan'];?>">
- <?php
- }else{
- echo 'not valid bro';
- }
Advertisement
Add Comment
Please, Sign In to add comment