Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Zwracanie wartości
Athlan
post
Post #1





Grupa: Developerzy
Postów: 823
Pomógł: 12
Dołączył: 18.12.2005

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


Witam, mam taki kod:

  1. <?php
  2. public function getFriend($iOwner, $iPerson)
  3. {
  4. $oDb = $this->getSource();
  5.  
  6. $oDb->setWhere('friend_owner = ' . (int)$iOwner . ' AND friend_id = ' . (int)$iPerson);
  7. $rResult = $oDb->dbSelect('friends', true, array('users' => 'friend_id = user_id'), 2);
  8. $aResult = $oDb->fetch(1, $rResult);
  9.  
  10. $oDb->clear();
  11.  
  12. var_dump ($aResult);
  13.  
  14. return $aResult;
  15. }
  16. ?>


metoda normalnie dumpuje tablicę, która zawiera dane, ale zawsze zwraca (bool)false. Zachowanie imho dziwne...

Jakieś pomysły?

Ten post edytował Athlan 10.03.2007, 19:22:18
Go to the top of the page
+Quote Post

Posty w temacie
- Athlan   [php] Zwracanie wartości   10.03.2007, 19:22:02


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: 24.08.2025 - 17:57