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
DannyM
post
Post #2





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

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


No tak tylko jak to sie dzieje, ze na jednym serwerze dziala a na innym nie ?
Moze jeszcze raz.
Mam:

  1. <?php
  2. //Przykładowe polecenie SQL
  3. $res = mysql_query("SELECT product_id, product_name, product_price, product_s_desc FROM shop_pr
    oduct, shop_product_price"
    );
  4. while(list($product_id, $product_name, $product_price, $product_s_desc) = mysql_fetch_row($res)){
  5. ?>

i ewidentnie wyskakuje, ze
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in i tu linia z WHILE

Ten post edytował DannyM 22.09.2006, 16:53:09
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: 3.10.2025 - 11:36