Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework] podwójny warunek Where.
istrd
post
Post #1





Grupa: Zarejestrowani
Postów: 90
Pomógł: 0
Dołączył: 3.12.2009

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


Witam,
Mam takie pytanie jak użyć podwójnego warunku where.
Próbuje tak:

  1. $exg = new Application_Model_DbTable_Exchange_game();
  2. $where= array('user_suggest'=>$id,
  3. 'approved'=>1);
  4.  
  5. $rows=$exg->select()->where($where);
  6. $rows=$rows->query();
  7. $rows=$rows->fetchAll();


Lecz dostaję error. Kiedyś używałem w ten sposób i działało teraz nie wiem co jest.

Zend_Db_Statement_Exception: SQLSTATE[42S22]: Column not found: 1054 Nieznana kolumna 'Array' w where clause
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: 24.08.2025 - 23:02