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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2007, 10:22 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default zend_db_table delete method bug?

Hello,
what's wrong with this code?

PHP Code:
public function deleteMessage($recipient$messageID){
      
$where = array(
         
'messageID' => $messageID,
         
'recipient'     => $recipient
    
);   
         
    
$this->delete($where);


No matter what values I pass to the parameters $recipient and $messageID (both INT values), the result is that the whole table is truncated.

How can I print out the resulting SQL statement in order to check what's going on?
Anyway, do you think is it wrong or is there a bug in the delete method?

Thank you
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 09:18 PM.