![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 406 Pomógł: 9 Dołączył: 24.07.2005 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
Pieszę mi błąd:
Wystąpił błąd ["select * from newsy where id = order by id DESC;"] [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 'order by id DESC' at line 1] -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Wystąpił błąd ["UPDATE newsy SET czytano=czytano + 1 WHERE id = "] [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 '' at line 1] -------------------------------------------------------------------------------- Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/virtual/gry.zombie.nekromanta.pl/htdocs/page/wiadomosci.php on line 11 Brak wiadomości w bazie danych Myślę że kod jest dobry i dlaczego mi wywala błąd!?(IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) ?(IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif) ?! Mam taki kodzik:
Ten post edytował vieri_pl 20.08.2005, 12:18:24 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 2 196 Pomógł: 2 Dołączył: 17.01.2004 Skąd: Sosnowiec Ostrzeżenie: (0%) ![]() ![]() |
Naprawdę nigdy się tego nie nauczycie? (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) Ciągle na topie pytania o GET/POST... Skoro robisz $_GET[ 'akcja' ], to czemu już nie zrobisz $_GET[ 'id' ]? A jak musisz koniecznie użyć wewnątrz " " to albo przypisz do $id wcześniej, albo ujmij w { }...
Tracę formę. Coraz częsciej mnie wyprzedzają (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) . @crash uczą się, uczą. Już przynajmniej pełniejsze info o błędach dostajemy, dzięki czemu momentalnie można zdiagnozować chorobę (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) ---- nospor |
|
|
![]() ![]() |
![]() |
Aktualny czas: 5.10.2025 - 14:12 |