2008年11月10日星期一

[fw-db] 1054 Unknown column in fetchrow statement

public function bouquetAction(){

$category = new Category();

$namecategory = $this->_request->getParam('bouquet');
echo $namecategory;

$this->view->category =
$category->fetchRow('category_name='.$namecategory);

I am getting the error
exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[42S22]:
Column not found: 1054 Unknown column 'Orchids' in 'where clause''

What am I doing wrong here. Been trying to get this working for hours
--
View this message in context: http://www.nabble.com/1054-Unknown-column-in-fetchrow-statement-tp20434456p20434456.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: