Merhabalar,
hocam simdi ufak bir admin paneli yapiyorum.
amacim mysql de mevcut bilgileri cekip, form la yenileyip update yapmak.
<form method="POST" action="duzenle.php">
<table width="100%" height="0" border="1" align="center" cellpadding="5" cellspacing="1" bordercolor="#000000">
<tr>
<td width="100" align="right"><div align="left">Film No : </div></td>
<td align="left"><input name="film_no" type="Text" value="Duzenlenicek veri" size="30" maxlength="70">
</td>
</tr>
</table>
</form>duzenle.php de ise ;
$film_no =$_POST['film_no'];
$tablo = mysql_query("UPDATE filmler SET no='$film_no' WHERE no='$no'");
if ( mysql_query($tablo) ) {
echo "Veriler güncellendi";
} else {
echo mysql_errno() . ": " . mysql_error(). "\n";
}bu sekilde calistiriyorum, fakat :
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1
bu hatayi aliyorum. 1064 karakter hatasi degil mi?
ilgilendiginiz icin tesekkurler, iyi calismalar.