I have a problem with the editing data on uploaded to MySQL. I am trying to edit the name file and the descryption,but there is no data shown on the form, here my edit.php
<html>
<head>
<title>Form Edit Data</title>
</head>
<body>
<a href="homeadmin.php">Kembali</a>
<table border=1>
<tr>
<td align=center>Edit Data</td>
</tr>
<tr>
<td>
<table>
<?php
include "dbconfig.php";
error_reporting(E_ALL);
$id = (int)$_GET['id'];
$mysql = "SELECT * FROM tbl_uploads WHERE id=$id";
$result = mysql_query($mysql);
$row = mysql_fetch_array($result);
echo mysql_error();
?>
<form method="post" action="update.php?">
<input type="hidden" name="id" value="<?php echo "$row[id]"?>">
<tr>
<td>Nama File</td>
<td>
<input type="text" name="file"
size="40" value="<?php echo "$row[file]"?>">
</td>
</tr>
<tr>
<td>Deskripsi</td>
<td>
<textarea input type="text" name="dekripsi"
value="<?php echo "$row[dekripsi]"?>"> </textarea>
</td>
</tr>
<tr>
<td align="right">
<input type="submit"
name="submit" value="Update">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
i cant get the data from what i choose, its blank form, but when i try to change the query to :
$mysql = "SELECT * FROM tbl_uploads WHERE id";
it get the data in the form, but not from what i choose, from the first id
on the table (i choose the 3 id from the table) this should be fill with the data from what i choose.