View Single Post
  #2 (permalink)  
Old 05-09-2008, 08:39 PM
Davidoff Davidoff is offline
Junior Member
 
Join Date: Oct 2007
Posts: 27
Default

This usually means that the params to be bound were null or not specified.

The error probably comes from this line:

PHP Code:
$where $photos->getAdapter()->quoteInto('id = ?'$id); 
It's wise in your scripts to test for anything you retrieve with getParam();

e.g.

PHP Code:
public function deleteAction()
    {
        
$id $this->getRequest()->getParam('id');

        if (!
$id){
             
//error
        
}
//...

Reply With Quote