Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> 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
szymon202
post
Post #1





Grupa: Zarejestrowani
Postów: 152
Pomógł: 0
Dołączył: 13.08.2013

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


Błąd:
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 'condition, quantity, price, img) VALUES ('USP-S | Obrońca', 'Fabrycznie nowa' at line 1
Zapytanie:
$wystaw = $db -> query("INSERT INTO products (name, condition, quantity, price, img) VALUES ('{$_POST["nazwa"]}', '{$_POST["stan"]}', '{$_POST["sztuk"]}', '{$_POST["cena"]}', '{$_POST["zdjecie"]}')");
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
krzesik
post
Post #2





Grupa: Zarejestrowani
Postów: 517
Pomógł: 1
Dołączył: 25.08.2012

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


więc to kwestia kodowania Twojej baz w stosunku do skryptu, ustaw wszystko na UTF-8
Go to the top of the page
+Quote Post
szymon202
post
Post #3





Grupa: Zarejestrowani
Postów: 152
Pomógł: 0
Dołączył: 13.08.2013

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


Cytat(krzesik @ 6.04.2015, 16:07:22 ) *
więc to kwestia kodowania Twojej baz w stosunku do skryptu, ustaw wszystko na UTF-8


Ale przecież mam utf8_general_ci

//Jednak nadal nie działa i cały czas mam ten błąd. Tamto testowałem w starym skrypcie.

Ten post edytował szymon202 6.04.2015, 15:10:41
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 17.10.2025 - 17:38