Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mysql_fetch_array():, Wszystko dobrze a jednak mu cos nie pasi
Haptor
post 11.09.2005, 12:42:18
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 15.05.2005

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


Witam! Jestem strasznie zirytowany dry.gif Robie sobie stronke i wszystko jest ok ... dane z bazy mysql sa prezentowane i mimo to powstaje błąd

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/w/n/z/wnz/www/func.php on line 8
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

Tresc pliku func.php wyglada nastepujaco:

  1. <?
  2.  
  3. function WierszM(){
  4.  
  5. $pol=mysql_connect("mysql.60free.ovh.org","*********","********");
  6. mysql_select_db ("wnz", $pol);
  7. $wyn=mysql_query ("SELECT * FROM milosne WHERE id = $id", $pol);
  8. while($poka=mysql_fetch_array($wyn)) // tu jest niby blad
  9. {
  10. echo"<b><font color='#FeFec0'>".$poka["tytul"];
  11. echo"</font></b>".$poka["tresc"];
  12. }
  13. }
  14. ?>


Prosilbym o pomoc gdyz kazdy nastepny dzien pogarsza moia sytuacje psycho-fizyczna blink.gif

Z góry thx
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 27.06.2025 - 03:40