![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 361 Pomógł: 12 Dołączył: 9.01.2010 Ostrzeżenie: (10%) ![]() ![]() |
Witam.
Stworzyłem sobie formularz który wyświetla dane użytkowników. Chcę by po zmianie w polach i naciśnięciu wyslij aktualizował wszystkie rekordy. Jak na razie aktualizuje ostatni rekord. Myślę że błąd robię w zapytaniu update. Prosze o pomoc.
Ten post edytował woxala123 14.08.2013, 09:33:14 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 361 Pomógł: 12 Dołączył: 9.01.2010 Ostrzeżenie: (10%) ![]() ![]() |
CZy napisac cos takiego
"UPDATE admin SET name=$name, email=$email WHERE id=$id" , W forularzu poprawiłem na <?php do { ?> <tr> <td><label for="id[]"></label> <input name="id[]" type="text" id="id[]" value="<?php echo $row_Recordset1['id']; ?>" size="15" maxlength="15"></td> <td><label for="name[]"></label> <input name="name[]" type="text" id="name[]" value="<?php echo $row_Recordset1['name']; ?>" size="15" maxlength="15"></td> <td><label for="email[]"></label> <input name="email[]" type="text" id="email[]" value="<?php echo $row_Recordset1['email']; ?>" size="15" maxlength="15"></td> </tr> <input name="id" type="hidden" id="id" value="<?php echo $row_Recordset1['id']; ?>"> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> I po print_r($_POST); nie aktualizuje pól tylko robią się puste |
|
|
![]() ![]() |
![]() |
Aktualny czas: 15.10.2025 - 19:52 |