Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][MYSQL] Błąd syntax
PawelC
post
Post #1





Grupa: Zarejestrowani
Postów: 1 173
Pomógł: 121
Dołączył: 24.09.2007
Skąd: Toruń

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


Dodaje do bazy rekord ale wyskakuje mi błąd:
Cytat
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 's men Udzia� zagranicznych aktyw�w wyni�s� 27%, podczas gdy ilo�� odd' at line 28

o co z tym chodzi, niemam żadnych znaków w tekscie typu ',~ itp
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
PawelC
post
Post #2





Grupa: Zarejestrowani
Postów: 1 173
Pomógł: 121
Dołączył: 24.09.2007
Skąd: Toruń

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


  1. $sql="INSERT INTO `wp_posts` (
  2. `ID` ,
  3. `post_author` ,
  4. `post_date` ,
  5. `post_date_gmt` ,
  6. `post_content` ,
  7. `post_title` ,
  8. `post_category` ,
  9. `post_excerpt` ,
  10. `post_status` ,
  11. `comment_status` ,
  12. `ping_status` ,
  13. `post_password` ,
  14. `post_name` ,
  15. `to_ping` ,
  16. `pinged` ,
  17. `post_modified` ,
  18. `post_modified_gmt` ,
  19. `post_content_filtered` ,
  20. `post_parent` ,
  21. `guid` ,
  22. `menu_order` ,
  23. `post_type` ,
  24. `post_mime_type` ,
  25. `comment_count`
  26. )
  27. VALUES (
  28. 'NULL' , '1', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '$tekst', '$wyraz', '0', '', 'publish', 'open', 'open', '', '$wyrazek', '', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '', '0', '', '0', 'post', '', '0'
  29. );";
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: 9.10.2025 - 13:00