Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php&sql] Mysql_fetch_array, valid MySQL result
DannyM
post
Post #1





Grupa: Zarejestrowani
Postów: 507
Pomógł: 2
Dołączył: 30.10.2003
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Podczas uzycia funkcji

  1. <?php
  2. $mainframe->_db->setQuery($sql);
  3. $rs = mysql_query($mainframe->_db->_sql);
  4. $totalnmb = 0;
  5. // linia 48
  6.  while ($row = mysql_fetch_array($rs))
  7. ?>


wystepuje

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in 48
Wystepuje to tylko na jednym serwerze. Czy trzeba ustawic cos w php.ini?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 559
Pomógł: 6315
Dołączył: 27.12.2004




  1. <?php
  2. $rs = mysql_query($mainframe->_db->_sql) or die('zapytanie: '.$mainframe->_db->_sql.';;;error:'.mysql_error());
  3. ?>

Znajac zycie to masz register_globals wylaczone i ci sie zmienne do zapytania nie wysylaja. Ale tylko zgaduje (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
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: 6.10.2025 - 10:01