Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mysql] problem z update
DANGER
post
Post #1





Grupa: Zarejestrowani
Postów: 43
Pomógł: 0
Dołączył: 23.11.2006

Ostrzeżenie: (0%)
-----


  1. <?php
  2. if (isset ($_POST['wyslij'])){
  3.  
  4. mysql_query("update 'dane2' set 'mail'='$mail' where 'id'='$id'");
  5.  
  6. }else{
  7.  
  8. while($r=mysql_fetch_array($e))
  9. {
  10.  
  11. echo '
  12. <form action="zmien.php?here" method="post">
  13.  <center><table border=0>
  14. <tr>
  15. <td>E-Mail*</td>
  16. <td><input style="background-color:#FFD0FF" type="text" size="20" maxlength="40" name="mail" value='.$r['mail'].'>
  17. </td>
  18. </tr>
  19. </table>
  20. <input type="hidden" name="id" value='.$r['id'].'>
  21. <input type="submit" name="wyslij" value=zmien>
  22. </form>
  23. }
  24. }
  25. ?>



to jest moj kod na aktualizacje maila...pobiera wartosc z bazy danych i wpisuje w pole textowe.....wciskajac przycisk zmien powinna nastepowac aktualizacja danych...ale tak nie jest....nic sie nie dzieje..nawet bledu nie raportuje zadnego....

Ten post edytował DANGER 18.12.2006, 17:45:08
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 00:56