Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Sql syntax problem
w00t
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 8.02.2006

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


Witam.

problem polega na tym że mając zapytanie sql:

  1. <?php
  2.  
  3. $sql = "UPDATE user SET imie=\"$imie\", mail=\"$mail\", age=\"$age\", from=\"$from\", sign=\"$sign\" WHERE id=\"$id\"";
  4.  
  5. ?>


Mysql zwraca błąd
Kod
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 'from='Sosnowiec', sign='Enemene


Dodam że pola w bazie są not null, a nawet po wypelnieniu wszystkich pol zwraca mi ten komunikat
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: 20.08.2025 - 07:12