Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Mały problem
sendi16
post
Post #1





Grupa: Zarejestrowani
Postów: 85
Pomógł: 0
Dołączył: 29.03.2003
Skąd: Kraków

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


mam taki skrypcik:
[php:1:6a3fa9711d]<?php

mysql_connect($sqlhost, $sqluser, $sqlpass);
mysql_select_db($sqldb);

$query="SELECT * FROM tips WHERE letter=$letter";
$dane=mysql_query($query);
while($row=mysql_fetch_array($dane)) {
print($row[id]);
}
?>
[/php:1:6a3fa9711d]

powoduje mi oto taki bląd:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:usrapachehttpdhtmlcybergamesindex.php on line 131

możecie mi wyjaśnic co w nim jest nie tak??

z góry dzięki
(IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) [/b]
?>[/php]
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
[fisher]
post
Post #2





Grupa: Zarejestrowani
Postów: 151
Pomógł: 0
Dołączył: 4.03.2003

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


Cytat
fisher - prawie trafiles... prawie

Nie chcialem podawac pelnej solucji, a raczej naprowadzic na istote problemu
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: 23.08.2025 - 17:55