Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-17-2007, 02:17 PM
Dead_Thinker's Avatar
Junior Member
 
Join Date: May 2007
Location: Fortaleza/Ceará/Brazil
Posts: 22
Send a message via ICQ to Dead_Thinker Send a message via Yahoo to Dead_Thinker Send a message via Skype™ to Dead_Thinker
Question Zend_Db_Select ON MySQL don't return nothing

Hy guys.

I'm using Zend Framework 1.0.1, and MySQL, trying to use a custom select with the Zend_Db_Select and a MySQL database, but cant get nothing from it.

My configs:
PHP Code:
[database]
db.adapter=PDO_MYSQL
db
.config.host=localhost
db
.config.port=3306
db
.config.dbname=databasename
db
.config.username=root
db
.config.password
My PHP test code:
PHP Code:
        $oDB Zend_Registry::get('db');
        
$oSelect $oDB->select();
        
$oSelect->from('tbacao');
        echo 
$oSelect->__toString(); // Return SELECT tbacao.* FROM tbacao
        
$result $oSelect->query($oSelect->__toString());
        foreach(
$result as $row) {
            
Zend_Debug::dump($row);
        } 
And nothing happens

I got the generated sql and run it on a query browser, and return all lines ok.


Any ideas?
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:48 PM.