Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MYSQL] Błąd w zapytaniu
_Martin_
post
Post #1





Grupa: Zarejestrowani
Postów: 352
Pomógł: 9
Dołączył: 16.09.2005
Skąd: Rybnik

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


Heloo

Problemik tym razem z tym zapytaniem

  1. INSERT INTO
  2. lista_transferowa
  3. (id_pilkarz, DATA, data_koniec, cena, cena_poczatkowa, opis)
  4. VALUES
  5. ('.$iId.', NOW(), DATE_ADD(NOW(), INTERVAL 2 DAY(), '.$iCena.', '.$iCena.', "'.$sOpis.'")
  6. '))
  7. {
  8. echo mysql_errno().": ".mysql_error()."<BR>";
  9. redirectRequest(TAPP, '', 'mAuctionAdded');
  10. }
  11. else
  12. { echo mysql_errno().": ".mysql_error()."<BR>";
  13. //setMessage('exception:mAuctionNotAdded');
  14. }




i efekt: 1064: Something is wrong in your syntax obok '(), 10000, 10000, "XXX")' w linii 5


Dzięki z góry (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
_Martin_
post
Post #2





Grupa: Zarejestrowani
Postów: 352
Pomógł: 9
Dołączył: 16.09.2005
Skąd: Rybnik

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


Tak już sam do tego doszłem hehe czytając php manual ze znaków tam niegdzie nie ma hee
Ale dzieki za pomoc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) +

co do kefirek to troche nie bo mam na dole elseye i

  1. <?php
  2. {
  3.                             echo mysql_errno().": ".mysql_error()."<BR>";
  4.                            redirectRequest(TAPP, '', 'mAuctionAdded');
  5.                        }
  6.                        else
  7.                        {       echo mysql_errno().": ".mysql_error()."<BR>";
  8.                            //setMessage('exception:mAuctionNotAdded');
  9.                        }
  10.                    }
  11.                    else
  12.                    {
  13.                        setMessage('exception:mNotFilled');
  14.                    }
  15. ?>


i na końcu dodał )); a powinno być )) + nawiasy (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Ten post edytował _Martin_ 12.01.2009, 23:18:00
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: 16.10.2025 - 15:03