Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Warning: mysql_fetch_array(): supplied argument is not a ...
LurTz
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 23.06.2003
Skąd: Tychy

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


Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/home/lurtz/public_html/test/News/index.php on line 9

Kod
<?

mysql_connect ("localhost", "root", "") or

die ("nie można połączyć się z MySQL");

mysql_select_db ("lurtz-metal") or

die ("Nie można się połączyć z bazą MySQL");



$wynik = mysql_query ("SELECT * FROM news ".

                      "ORDER BY nr DESC LIMIT 0,8;");

while ($rekord = mysql_fetch_array ($wynik)) {

print "<p><b><a href="news.php?nr=".$rekord[0]."">";

print $rekord[2]."</a></b><br>".$rekord[3]."</p>";

print "<p align=right><i>".$rekord[1]."</i></p>n";

}

?>

<br><br>

<p align=right><a href="news.php"

>wszystkie newsy</a></p>

</td>

Czy ktoś moze mi pomóc gdzie zrobiłem tutaj błąd questionmark.gif


--------------------
Go to the top of the page
+Quote Post

Posty w temacie
- LurTz   Warning: mysql_fetch_array(): supplied argument is not a ...   29.06.2003, 14:31:06
- - Kill3R   hej proponuje zagladnac http://www.php.faq.pl/k...   29.06.2003, 14:52:57
- - LurTz   Dzieki   29.06.2003, 14:58:26


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 Aktualny czas: 20.08.2025 - 10:28