Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][MYSQL][ZEND] - mysql_num_rows(), Wyszukiwarka
Cenoniada
post
Post #1





Grupa: Zarejestrowani
Postów: 46
Pomógł: 0
Dołączył: 23.10.2008

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


Witam,

Podmieniamy silnik naszej wyszukiwarki na ZEND ENGINE i jest problem mały :

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/data/cenoniada.pl/include/mysql.class.php on line 131

linie odpowiedzialne :

  1. <?php
  2. public function NumRows($name = null) {
  3.          if (!$name) $name = $this->_last;
  4.          $num_rows = mysql_num_rows($this->_quers[$name]);
  5.          $this->debug("Counting rows with name '$name' give us number $num_rows\");
  6.          return $num_rows;
  7.        }
  8. ?>


To kwestia zliczania wyników typowanych w nowym systemie wyszukiwania, a może jakieś problemy połączenia? Co to może być?

Ten post edytował Cenoniada 3.04.2009, 16:10:28
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 Aktualny czas: 20.08.2025 - 11:59