char sudah di ganti sama varchar tapi tetep. ini form editnya :
<?php
if($_SESSION['adm'] == "admin"){
include "includes/fungsi.php";
?>
<?php
$conn = mysql_connect("localhost","root","");
mysql_select_db("RPL",$conn);
?>
<html>
<head>
<title>-</title>
<?php
$conn = mysql_connect("localhost", "root", "") or die ("Gagal konek ke server.");
mysql_select_db("RPL") or die ("Gagal membuka database.");
$peminjam_kode = (int) $_GET['peminjam_kode'];
$sql = "select * from peminjam where peminjam_kode='$peminjam_kode'";
$result = mysql_query($sql);
$data = mysql_fetch_array($result);
?>
<form action="update.php" method="post" enctype="multipart/form-data" name="edit"><center>
<input type="hidden" name="peminjam_kode" value="<?php echo $data['peminjam_kode']; ?>">
<table align="center">
<tr><td colspan="3" align="center"><h3>Peminjam</h3></td></tr>
<tr><td colspan="3" align="center"><img src="<?php echo $data['photo']; ?>" alt="<?php echo $data['peminjam_nama']; ?>" width="150" border="1"/></td></tr>
<tr><td>Kode Peminjam</td>
<td>:</td>
<td><?php echo $data['peminjam_kode']; ?></td></tr>
<tr><td>Nama Peminjam</td>
<td>:</td>
<td><input type="text" name="peminjam_nama" value="<?php echo $data['peminjam_nama']; ?>" width="20"/></td></tr>
<tr><td>Alamat Peminjam</td>
<td>:</td>
<td><input type="text" name="peminjam_alamat" value="<?php echo $data['peminjam_alamat']; ?>" width="20"/></td></tr>
<tr><td>Telepon Peminjam</td>
<td>:</td>
<td><input type="text" name="peminjam_telp" value="<?php echo $data['peminjam_telp']; ?>" width="20"/></td></tr>
<tr><td>Photo</td>
<td>:</td>
<td><input type="file" name="photo" id="photo"></td>
</tr>
<tr><td colspan="3" align="center"><input type="submit" name="edit" value="save" /> </td></tr>
</table><br><br><br><br>
</center>
</form>
<?php
}else{
echo "<br/>";
echo"<center><h2><font color='red'>Anda tidak memiliki kewenangan untuk mengakses halaman ini";
echo"<meta http-equive='refresh' content='1;URL=../../../index.php'>";
}
?>
</head>
</html>