Very nice :) Thank you! Sergio Rinaudo
> Date: Mon, 29 Mar 2010 09:09:04 +0100 > From: [email protected] > To: [email protected] > Subject: Re: [fw-general] Get query and error messages from $db->update > > Hi. Something like this will work: > > public function dumpSQL() > { > $db = Zend_Db_Table::getDefaultAdapter(); > $dbProfiler = $db->getProfiler(); > $dbQuery = $dbProfiler->getLastQueryProfile(); > $dbSQL = $dbQuery->getQuery(); > > print_r($dbSQL); > } > > Regards, > > Narinder. > -- > > ______________________________________________________ > | Narinder Chandi, Director, > | ToolBox Systems Limited, Surrey, England, UK. > | tel : +44 (0)1372 720117, mob : +44 (0)7973 512495 > | www : http://www.toolbox.uk.com > | Skype : NarinderChandi > | LinkedIn : http://www.linkedin.com/in/toolboxsystems > | Twitter : @ToolBoxSystems > |______________________________________________________ > | Consultancy * Development * Support > |______________________________________________________ > > > on 29/03/2010 09:01, Sergio Rinaudo at [email protected] wrote: > > > > > Hi everybody, > > if I construct an update query programmatically using Zend_Db, how can I get > > this query and how to get what is the problem if the query fails? > > Thanks > > > > Sergio Rinaudo > > > > _________________________________________________________________ Personalizza il tuo Messenger con nuove e divertenti Emoticon http://www.pimpit.it/emoticon.html
