I cannot update row datas.I cannot find what is wrong because my query in updating is 100% right for me.I hope so..But here is my codes so you can help me.
this is home_admin.php
<?
include("connect.php");
include("addfunc.php");
echo"<link rel=stylesheet type=text/css href=design.css />";
echo"<center><img src=top.png></center>";
if(isset($_GET['add'])){
echo
"<table align=center id=table>
<tr align=center><td align=center>Title<input type=text name=title><br></tr></td>
<tr align=center><td align=center>Price<input type=text name=price><br></tr></td>
<tr align=center><td align=center>Stock<input type=text name=stock><br></tr></td>
<tr align=center><td align=center><input type=submit name=save value=SAVE><br></tr></td></table>
";
}
else {
$result= mysql_query("SELECT * FROM books");
echo "<div><table border=0 cellspacing='15' align=center id=table1>
<tr>
<th>Code</th>
<th>Title</th>
<th>Price</th>
<th>Stock</th>
</tr>";
while($row = mysql_fetch_array($result)) {
$code = $row['Code'];
echo "<tr><td align=center>".$row['Code']."</td>";
echo "<td align=center>".$row['Title']."</td>";
echo "<td align=center>".$row['Price']."</td>";
echo "<td align=center>".$row['Stock']."</td>";
echo "<td align=center>"."<a href=delete.php?Code=".$row['Code']."><input type='image' src=erase.ico></a>"."</td>";
echo"<td align=center>"."<a href='home_edit.php?Code=$code'> <input type='image' src=edit.png></a>"."</td></tr>";
}
echo"</table></div>";
echo"<table align=center><tr><td><input type=submit name=add value='ADD BOOKS'><br> ";
echo "<center><a href=logout.php> Log-out </a></center>";
}
?>