![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 12.07.2011 Ostrzeżenie: (0%) ![]() ![]() |
Siema, napisałem taką oto klasę do insertowania danych do db:
Lecz non stop wywala mi błąd, Parse error: syntax error, unexpected T_VARIABLE in D:\Projekty\vs\class.addnews.php on line 33 , próbowałem już na różne sposoby i jedynym sukcesem było insertowanie danych jako całego stringa $this->title, $this->content, $this->author. Wiecie może gdzie znajduje się problem?? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 12.07.2011 Ostrzeżenie: (0%) ![]() ![]() |
niestety teraz wywala mi inne błędy:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 'news, tresc newsa, autor newsa)' at line 1' in D:\Projekty\vs\class.addnews.php on line 33 i drugi błąd: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'news, tresc newsa, autor newsa)' at line 1 in D:\Projekty\vs\class.addnews.php on line 33 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 11.10.2025 - 00:46 |