In the table "galeri_resim" in the database, there are rows with IDs like "1, 2, 3, ...". I want to edit the data in these rows using an HTML form in the admin panel. Afterwards, I want to send the edited form to my save.php page and process it in the database. While I can successfully perform this process for a single ID, for example, I am unable to do it for ID 4 (only one is being saved). Can you help me with this? The code I use for writing to the database is as follows:
```
if ($_GET['islem'] == "fotodegistir") {
include "../include/ayarlar.php";
if ($_POST["fotodegistir"]) {
mysql_query("
UPDATE galeri_resim
SET g_id = '" . mysql_real_escape_string(stripslashes($_POST["g_id"])) . "',
baslik = '" . mysql_real_escape_string(stripslashes($_POST["baslik"])) . "',
bilgi = '" . mysql_real_escape_string(stripslashes($_POST["bilgi"])) . "',
sira = '" . mysql_real_escape_string(stripslashes($_POST["sira"])) . "'
WHERE id ='" . $_POST["foto_id"] . "'
");
}
}
```
```
if ($_GET['islem'] == "fotodegistir") {
include "../include/ayarlar.php";
if ($_POST["fotodegistir"]) {
mysql_query("
UPDATE galeri_resim
SET g_id = '" . mysql_real_escape_string(stripslashes($_POST["g_id"])) . "',
baslik = '" . mysql_real_escape_string(stripslashes($_POST["baslik"])) . "',
bilgi = '" . mysql_real_escape_string(stripslashes($_POST["bilgi"])) . "',
sira = '" . mysql_real_escape_string(stripslashes($_POST["sira"])) . "'
WHERE id ='" . $_POST["foto_id"] . "'
");
}
}
```