![]() |
![]() ![]() |
![]() |
![]()
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: 4 340 Pomógł: 542 Dołączył: 15.01.2006 Skąd: Olsztyn/Warszawa Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#3
|
|
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 |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 728 Pomógł: 76 Dołączył: 12.06.2009 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 12.07.2011 Ostrzeżenie: (0%) ![]() ![]() |
no niestety ;/
|
|
|
![]()
Post
#6
|
|
Grupa: Zarejestrowani Postów: 1 729 Pomógł: 346 Dołączył: 4.04.2009 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#7
|
|
Grupa: Zarejestrowani Postów: 10 Pomógł: 0 Dołączył: 12.07.2011 Ostrzeżenie: (0%) ![]() ![]() |
dzieki lobopol (IMG:style_emoticons/default/smile.gif) teraz wszystko śmiga (IMG:style_emoticons/default/smile.gif)
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.09.2025 - 10:28 |