<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-16192</id>
	<title>Nabble - Zend DB</title>
	<updated>2009-11-19T13:43:37Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Zend-DB-f16192.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend-DB-f16192.html" />
	<subtitle type="html">Zend &lt;a href=&quot;http://framework.zend.com/wiki/x/0xM&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DB&lt;/a&gt;</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26421491</id>
	<title>Re: Zend_Db_Table_Row strange behavior -added information</title>
	<published>2009-11-19T13:43:37Z</published>
	<updated>2009-11-19T13:43:37Z</updated>
	<author>
		<name>oetting</name>
	</author>
	<content type="html">Hi Bart
&lt;br&gt;&lt;br&gt;A few questions:
&lt;br&gt;&lt;br&gt;What does the var_dump look like before you save the row?
&lt;br&gt;Which version of ZF are you using?
&lt;br&gt;How exactly do you instantiate the Table object?
&lt;br&gt;(Have you double-checked the actual names of the columns in your table?)
&lt;br&gt;&lt;br&gt;Regards, Jacob Oettinger
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Bart McLeod wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;The problem described only occurs if if instantiate the dataobject with 
&lt;br&gt;a tablename in the options for the constructor. It does not occur if I 
&lt;br&gt;inherit from Zend_Db_Table_Abstract and specify the tablename as a property.
&lt;br&gt;That will be the reason that not everybody is complaining.
&lt;br&gt;&lt;br&gt;-Bart
&lt;br&gt;&lt;br&gt;Bart McLeod schreef:
&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I could not find an open issue about this and could not find similar 
&lt;br&gt;&amp;gt; messages on the list, but forgive me if this is a duplicate of 
&lt;br&gt;&amp;gt; anything mentioned earlier.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a unit test that tests a dataobject class and it uses a 
&lt;br&gt;&amp;gt; Zend_Db_Table_Row to do updates/inserts.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The strange thing is that after setting a few properties and calling 
&lt;br&gt;&amp;gt; -&amp;gt;save(), one of the column indexes (the last one) is replaced with 
&lt;br&gt;&amp;gt; the tablename....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is so strange that I thought you guys would be all over the list 
&lt;br&gt;&amp;gt; screaming out in anger, but since you are not, I am probably doing 
&lt;br&gt;&amp;gt; something wrong myself. If not, I will be happy to file an issue and 
&lt;br&gt;&amp;gt; try to fix it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is the code:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;DataObject-&amp;gt;code = 11;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;DataObject-&amp;gt;naam = 'testnaam';
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;DataObject-&amp;gt;volgnr = 12;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;assertTrue($this-&amp;gt;DataObject-&amp;gt;save());
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This works.
&lt;br&gt;&amp;gt; But after that, if I var_dump $this-&amp;gt;_row inside the DataObject, I get 
&lt;br&gt;&amp;gt; this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&amp;quot;_cleanData:protected&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;array(3) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&amp;quot;code&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string(2) &amp;quot;11&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&amp;quot;naam&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string(8) &amp;quot;testnaam&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&amp;quot;regio&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string(2) &amp;quot;12&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The last index should have been 'volgnr', not 'regio', the latter 
&lt;br&gt;&amp;gt; being the name of the table.....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How's that for weird?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I try to save again, I get the message that volgnr is not in the 
&lt;br&gt;&amp;gt; column list (obvious).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyone come to the rescue here?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bart McLeod
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Bart McLeod
&lt;br&gt;*Space Web*
&lt;br&gt;Middenlaan 47
&lt;br&gt;6865 VN Heveadorp
&lt;br&gt;The Netherlands
&lt;br&gt;*t* +31(0)26 3392952
&lt;br&gt;*m* 06 51 51 89 71
&lt;br&gt;*@* info@spaceweb.nl &amp;lt;mailto:info@spaceweb.nl&amp;gt;
&lt;br&gt;www.spaceweb.nl &amp;lt;&lt;a href=&quot;http://www.spaceweb.nl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.spaceweb.nl&lt;/a&gt;&amp;gt; 	zce logozce PHP 5 logo zce 
&lt;br&gt;Zend Framework logo
&lt;br&gt;&lt;br&gt;/Bart McLeod is a Zend Certified Engineer./
&lt;br&gt;&lt;br&gt;Click to verify! &amp;lt;&lt;a href=&quot;http://www.zend.com/zce.php?c=ZEND004591&amp;r=218204904&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.zend.com/zce.php?c=ZEND004591&amp;r=218204904&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend_Db_Table_Row-strange-behavior-tp26389971p26421491.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26390323</id>
	<title>Re: Zend_Db_Table_Row strange behavior -added information</title>
	<published>2009-11-17T05:55:09Z</published>
	<updated>2009-11-17T05:55:09Z</updated>
	<author>
		<name>Bart McLeod</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
The problem described only occurs if if instantiate the dataobject with
a tablename in the options for the constructor. It does not occur if I
inherit from Zend_Db_Table_Abstract and specify the tablename as a
property.&lt;br&gt;
That will be the reason that not everybody is complaining.&lt;br&gt;
&lt;br&gt;
-Bart&lt;br&gt;
&lt;br&gt;
Bart McLeod schreef:
&lt;blockquote cite=&quot;mid:4B02A579.8020701@spaceweb.nl&quot; type=&quot;cite&quot;&gt;Hi all,
  &lt;br&gt;
  &lt;br&gt;
I could not find an open issue about this and could not find similar
messages on the list, but forgive me if this is a duplicate of anything
mentioned earlier.
  &lt;br&gt;
  &lt;br&gt;
I have a unit test that tests a dataobject class and it uses a
Zend_Db_Table_Row to do updates/inserts.
  &lt;br&gt;
  &lt;br&gt;
The strange thing is that after setting a few properties and calling
-&amp;gt;save(), one of the column indexes (the last one) is replaced with
the tablename....
  &lt;br&gt;
  &lt;br&gt;
This is so strange that I thought you guys would be all over the list
screaming out in anger, but since you are not, I am probably doing
something wrong myself. If not, I will be happy to file an issue and
try to fix it.
  &lt;br&gt;
  &lt;br&gt;
This is the code:
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;DataObject-&amp;gt;code = 11;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;DataObject-&amp;gt;naam = 'testnaam';
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;DataObject-&amp;gt;volgnr = 12;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;assertTrue($this-&amp;gt;DataObject-&amp;gt;save());
  &lt;br&gt;
  &lt;br&gt;
This works.
  &lt;br&gt;
But after that, if I var_dump $this-&amp;gt;_row inside the DataObject, I
get this:
  &lt;br&gt;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&quot;_cleanData:protected&quot;]=&amp;gt;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(3) {
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&quot;code&quot;]=&amp;gt;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string(2) &quot;11&quot;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&quot;naam&quot;]=&amp;gt;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string(8) &quot;testnaam&quot;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&quot;regio&quot;]=&amp;gt;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string(2) &quot;12&quot;
  &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
  &lt;br&gt;
  &lt;br&gt;
The last index should have been 'volgnr', not 'regio', the latter being
the name of the table.....
  &lt;br&gt;
  &lt;br&gt;
How's that for weird?
  &lt;br&gt;
  &lt;br&gt;
If I try to save again, I get the message that volgnr is not in the
column list (obvious).
  &lt;br&gt;
  &lt;br&gt;
Anyone come to the rescue here?
  &lt;br&gt;
  &lt;br&gt;
Regards,
  &lt;br&gt;
  &lt;br&gt;
Bart McLeod
  &lt;br&gt;
  &lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;div class=&quot;moz-signature&quot;&gt;-- &lt;br&gt;
&lt;table style=&quot;color: rgb(133, 133, 125); font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; font-size-adjust: none; font-stretch: normal; letter-spacing: 1px; line-height: 18px;&quot; border=&quot;0&quot; cellpadding=&quot;20&quot; width=&quot;100%&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td valign=&quot;top&quot;&gt;Bart McLeod&lt;br&gt;
      &lt;strong&gt;Space Web&lt;/strong&gt;&lt;br&gt;
Middenlaan 47&lt;br&gt;
6865 VN Heveadorp&lt;br&gt;
The Netherlands&lt;br&gt;
      &lt;strong&gt;t&lt;/strong&gt; +31(0)26 3392952&lt;br&gt;
      &lt;strong&gt;m&lt;/strong&gt; 06 51 51 89 71&lt;br&gt;
      &lt;strong&gt;@&lt;/strong&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26390323&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&lt;br&gt;
      &lt;a href=&quot;http://www.spaceweb.nl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.spaceweb.nl&lt;/a&gt;
      &lt;/td&gt;
      &lt;td valign=&quot;top&quot;&gt;
      &lt;img src=&quot;http://old.nabble.com/attachment/26390323/0/zce_logo.gif&quot; alt=&quot;zce logo&quot; border=&quot;0&quot;&gt;&lt;img src=&quot;http://old.nabble.com/attachment/26390323/1/php5-zce-logo-new.gif&quot; alt=&quot;zce PHP 5 logo&quot; border=&quot;0&quot; hspace=&quot;10&quot;&gt;
      &lt;img src=&quot;http://old.nabble.com/attachment/26390323/2/zf-zce-logo.gif&quot; alt=&quot;zce Zend Framework logo&quot; border=&quot;0&quot;&gt;
      &lt;p&gt;&lt;em&gt;Bart McLeod is a Zend Certified Engineer.&lt;/em&gt;
      &lt;/p&gt;
      &lt;p&gt;
      &lt;a href=&quot;http://www.zend.com/zce.php?c=ZEND004591&amp;amp;r=218204904&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Click
to verify!&lt;/a&gt;
      &lt;/p&gt;
      &lt;/td&gt;
      &lt;td align=&quot;right&quot; valign=&quot;top&quot;&gt;&lt;img src=&quot;http://old.nabble.com/attachment/26390323/3/logo_230.gif&quot; alt=&quot;&quot; border=&quot;0&quot; width=&quot;230&quot;&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend_Db_Table_Row-strange-behavior-tp26389971p26390323.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26389971</id>
	<title>Zend_Db_Table_Row strange behavior</title>
	<published>2009-11-17T05:30:33Z</published>
	<updated>2009-11-17T05:30:33Z</updated>
	<author>
		<name>Bart McLeod</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I could not find an open issue about this and could not find similar 
&lt;br&gt;messages on the list, but forgive me if this is a duplicate of anything 
&lt;br&gt;mentioned earlier.
&lt;br&gt;&lt;br&gt;I have a unit test that tests a dataobject class and it uses a 
&lt;br&gt;Zend_Db_Table_Row to do updates/inserts.
&lt;br&gt;&lt;br&gt;The strange thing is that after setting a few properties and calling 
&lt;br&gt;-&amp;gt;save(), one of the column indexes (the last one) is replaced with the 
&lt;br&gt;tablename....
&lt;br&gt;&lt;br&gt;This is so strange that I thought you guys would be all over the list 
&lt;br&gt;screaming out in anger, but since you are not, I am probably doing 
&lt;br&gt;something wrong myself. If not, I will be happy to file an issue and try 
&lt;br&gt;to fix it.
&lt;br&gt;&lt;br&gt;This is the code:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;DataObject-&amp;gt;code = 11;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;DataObject-&amp;gt;naam = 'testnaam';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;DataObject-&amp;gt;volgnr = 12;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;assertTrue($this-&amp;gt;DataObject-&amp;gt;save());
&lt;br&gt;&lt;br&gt;This works.
&lt;br&gt;But after that, if I var_dump $this-&amp;gt;_row inside the DataObject, I get this:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [&amp;quot;_cleanData:protected&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; array(3) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&amp;quot;code&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string(2) &amp;quot;11&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&amp;quot;naam&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string(8) &amp;quot;testnaam&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&amp;quot;regio&amp;quot;]=&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string(2) &amp;quot;12&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;The last index should have been 'volgnr', not 'regio', the latter being 
&lt;br&gt;the name of the table.....
&lt;br&gt;&lt;br&gt;How's that for weird?
&lt;br&gt;&lt;br&gt;If I try to save again, I get the message that volgnr is not in the 
&lt;br&gt;column list (obvious).
&lt;br&gt;&lt;br&gt;Anyone come to the rescue here?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Bart McLeod
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend_Db_Table_Row-strange-behavior-tp26389971p26389971.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26335664</id>
	<title>Re: MySQL date_add failes under Zend_Db</title>
	<published>2009-11-13T04:10:06Z</published>
	<updated>2009-11-13T04:10:06Z</updated>
	<author>
		<name>Martijn Korse</name>
	</author>
	<content type="html">What does the query look like when you try to output it?
&lt;br&gt;&lt;br&gt;&lt;b&gt;echo $sql-&amp;gt;__toString();&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Tom Anderson wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I'm trying to execute the following sql: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date_add(audit_stop, INTERVAL audit_stop_usec MICROSECOND) as audit_stop,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date_add(audit_start, INTERVAL audit_start_usec MICROSECOND) AS audit_start
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM shows_audit, artists
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE ref_artist = artist_key
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND shows_key = $shows_key
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ORDER BY audit_stop ASC, audit_start ASC, audit_stop_usec asc, audit_start_usec asc
&lt;br&gt;&lt;br&gt;This is represented using zend_db_select and zend_db_expr as 
&lt;br&gt;$sql = $db-&amp;gt;select()
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;from('shows_audit', array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Zend_Db_Expr('date_add(audit_stop, INTERVAL audit_stop_usec MICROSECOND) as audit_stop'),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Zend_Db_Expr('date_add(audit_start, INTERVAL audit_start_usec MICROSECOND) AS audit_start')
&lt;br&gt;&amp;nbsp; &amp;nbsp; ))
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;from('artists', array())
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;where(&amp;quot;ref_artist = artist_key AND shows_key = $shows_key&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;order(array('audit_stop ASC', 'audit_start ASC', 'audit_stop_usec ASC', 'audit_start_usec ASC'));
&lt;br&gt;&lt;br&gt;Under both conditions the date_add doesn't return the correct expression and the usec's are lost. &amp;nbsp;This query works fine under Pear. &amp;nbsp;I suspect the root cause is MySQL corrupts the function in it's prepare step but I'm posting here since it's happening through Zend and I don't know a way around it.
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;Tom Anderson
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;div class=&quot;signature&quot;&gt;&lt;a href=&quot;http://devshed.excudo.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://devshed.excudo.net&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MySQL-date_add-failes-under-Zend_Db-tp26294429p26335664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26295302</id>
	<title>Re: MySQL date_add failes under Zend_Db</title>
	<published>2009-11-10T19:15:39Z</published>
	<updated>2009-11-10T19:15:39Z</updated>
	<author>
		<name>Tom Anderson</name>
	</author>
	<content type="html">Further testing shows 
&lt;br&gt;SELECT date_add('2009-11-10 19:52:00', INTERVAL 12345 MICROSECOND) as audit_start
&lt;br&gt;&lt;br&gt;works but 
&lt;br&gt;&lt;br&gt;SELECT date_add(audit_start, INTERVAL 12345 MICROSECOND) as audit_start FROM shows_audit LIMIT 1
&lt;br&gt;&lt;br&gt;does not append the useconds. &amp;nbsp;This is only happening with prepared queries.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MySQL-date_add-failes-under-Zend_Db-tp26294429p26295302.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26294429</id>
	<title>MySQL date_add failes under Zend_Db</title>
	<published>2009-11-10T17:17:29Z</published>
	<updated>2009-11-10T17:17:29Z</updated>
	<author>
		<name>Tom Anderson</name>
	</author>
	<content type="html">I'm trying to execute the following sql: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date_add(audit_stop, INTERVAL audit_stop_usec MICROSECOND) as audit_stop,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date_add(audit_start, INTERVAL audit_start_usec MICROSECOND) AS audit_start
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM shows_audit, artists
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE ref_artist = artist_key
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND shows_key = $shows_key
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ORDER BY audit_stop ASC, audit_start ASC, audit_stop_usec asc, audit_start_usec asc
&lt;br&gt;&lt;br&gt;This is represented using zend_db_select and zend_db_expr as 
&lt;br&gt;$sql = $db-&amp;gt;select()
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;from('shows_audit', array(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Zend_Db_Expr('date_add(audit_stop, INTERVAL audit_stop_usec MICROSECOND) as audit_stop'),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new Zend_Db_Expr('date_add(audit_start, INTERVAL audit_start_usec MICROSECOND) AS audit_start')
&lt;br&gt;&amp;nbsp; &amp;nbsp; ))
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;from('artists', array())
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;where(&amp;quot;ref_artist = artist_key AND shows_key = $shows_key&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; -&amp;gt;order(array('audit_stop ASC', 'audit_start ASC', 'audit_stop_usec ASC', 'audit_start_usec ASC'));
&lt;br&gt;&lt;br&gt;Under both conditions the date_add doesn't return the correct expression and the usec's are lost. &amp;nbsp;This query works fine under Pear. &amp;nbsp;I suspect the root cause is MySQL corrupts the function in it's prepare step but I'm posting here since it's happening through Zend and I don't know a way around it.
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;Tom Anderson
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MySQL-date_add-failes-under-Zend_Db-tp26294429p26294429.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26294295</id>
	<title>view object</title>
	<published>2009-11-10T16:59:50Z</published>
	<updated>2009-11-10T16:59:50Z</updated>
	<author>
		<name>Roozbeh Matloobi</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;I cannot undrestand that the vlaue of view in controller is different 
&lt;br&gt;form view/script.
&lt;br&gt;to make it clear. when I am returning $this-&amp;gt;view in the controller I 
&lt;br&gt;have some missing arguments compare to return $this in view/script. 
&lt;br&gt;forexample:
&lt;br&gt;the $this-&amp;gt;view in controller:
&lt;br&gt;.
&lt;br&gt;.
&lt;br&gt;.
&lt;br&gt;.[&amp;quot;_path&amp;quot;:&amp;quot;Zend_View_Abstract&amp;quot;:private] =&amp;gt; array(3) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;[&amp;quot;script&amp;quot;] =&amp;gt; array(1) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[0] =&amp;gt; string(71) 
&lt;br&gt;&amp;quot;C:\roozbeh\repo\newskool\repo\application\modules\client\views\scripts\&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;[&amp;quot;helper&amp;quot;] =&amp;gt; array(0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;[&amp;quot;filter&amp;quot;] =&amp;gt; array(0) {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;the value of $this in view/script.
&lt;br&gt;&lt;br&gt;[&amp;quot;_path&amp;quot;:&amp;quot;Zend_View_Abstract&amp;quot;:private] =&amp;gt; array(3) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;[&amp;quot;script&amp;quot;] =&amp;gt; array(3) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[0] =&amp;gt; string(63) 
&lt;br&gt;&amp;quot;C:\roozbeh\repo\newskool\repo\application\views\scripts\client\&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[1] =&amp;gt; string(56) 
&lt;br&gt;&amp;quot;C:\roozbeh\repo\newskool\repo\application\views\scripts\&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[2] =&amp;gt; string(71) 
&lt;br&gt;&amp;quot;C:\roozbeh\repo\newskool\repo\application\modules\client\views\scripts\&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;[&amp;quot;helper&amp;quot;] =&amp;gt; array(0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;[&amp;quot;filter&amp;quot;] =&amp;gt; array(0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;could you please let me know how can i have [0] =&amp;gt; string(63) 
&lt;br&gt;&amp;quot;C:\roozbeh\repo\newskool\repo\application\views\scripts\client\&amp;quot;
&lt;br&gt;[1] =&amp;gt; string(56) 
&lt;br&gt;&amp;quot;C:\roozbeh\repo\newskool\repo\application\views\scripts\&amp;quot;
&lt;br&gt;&lt;br&gt;in conroller so by running $this-&amp;gt;view in controller I can have above 
&lt;br&gt;values.
&lt;br&gt;much appriciate for any help.
&lt;br&gt;Thanks,
&lt;br&gt;Roozbeh
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/view-object-tp26294295p26294295.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26289093</id>
	<title>Re: Nested transactions</title>
	<published>2009-11-10T12:39:46Z</published>
	<updated>2009-11-10T12:39:46Z</updated>
	<author>
		<name>oetting</name>
	</author>
	<content type="html">On 10/11/2009, at 16.06, Ralph Schindler wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I would also say that this issue is related:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://framework.zend.com/issues/browse/ZF-870&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/issues/browse/ZF-870&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;It is, an implementation of a transaction-nesting-counter could be &amp;nbsp;
&lt;br&gt;used in a resolution of this issue.
&lt;br&gt;&lt;br&gt;I have updated JIRA to reflect this.
&lt;br&gt;&lt;br&gt;&amp;gt; Also, can you explain what parts would be a BC break?
&lt;br&gt;&lt;br&gt;If the adapters, that hide the fact that the underlying engines does &amp;nbsp;
&lt;br&gt;not support nested transactions, were updated to throw an exception &amp;nbsp;
&lt;br&gt;when attempting to nest transactions, code that depends on being able &amp;nbsp;
&lt;br&gt;to nest transactions would break.
&lt;br&gt;&lt;br&gt;I do not know if this would be classified as a real BC break. The api &amp;nbsp;
&lt;br&gt;will not be changed. But the behavior of some adaptors, when nesting &amp;nbsp;
&lt;br&gt;transactions, would be changed.
&lt;br&gt;&lt;br&gt;Currently if you want to write code that will work across all adapters &amp;nbsp;
&lt;br&gt;you would have to be prepared for exceptions, because some adapters &amp;nbsp;
&lt;br&gt;(PDO) will throw them. What I suggest would standardize the behavior &amp;nbsp;
&lt;br&gt;so that all adapters throw exceptions when their underlying engine do &amp;nbsp;
&lt;br&gt;not support it.
&lt;br&gt;&lt;br&gt;Would this be classified as a BC break?
&lt;br&gt;&lt;br&gt;/Jacob
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -ralph
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; oetting wrote:
&lt;br&gt;&amp;gt;&amp;gt; I want direct some attention to an issue I have reported. &lt;a href=&quot;http://framework.zend.com/issues/browse/ZF-8063&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/issues/browse/ZF-8063&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; The issue needs some discussion before any action can be taken. I &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; guess I
&lt;br&gt;&amp;gt;&amp;gt; should have posted on the list before creating the issue, but &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; better late
&lt;br&gt;&amp;gt;&amp;gt; than never :)
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-transactions-tp26284231p26289093.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26284987</id>
	<title>Re: Nested transactions</title>
	<published>2009-11-10T07:06:23Z</published>
	<updated>2009-11-10T07:06:23Z</updated>
	<author>
		<name>Ralph Schindler-2</name>
	</author>
	<content type="html">I would also say that this issue is related:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://framework.zend.com/issues/browse/ZF-870&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/issues/browse/ZF-870&lt;/a&gt;&lt;br&gt;&lt;br&gt;Also, can you explain what parts would be a BC break?
&lt;br&gt;&lt;br&gt;-ralph
&lt;br&gt;&lt;br&gt;oetting wrote:
&lt;br&gt;&amp;gt; I want direct some attention to an issue I have reported. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://framework.zend.com/issues/browse/ZF-8063&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/issues/browse/ZF-8063&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The issue needs some discussion before any action can be taken. I guess I
&lt;br&gt;&amp;gt; should have posted on the list before creating the issue, but better late
&lt;br&gt;&amp;gt; than never :)
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-transactions-tp26284231p26284987.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26284231</id>
	<title>Nested transactions</title>
	<published>2009-11-10T06:20:55Z</published>
	<updated>2009-11-10T06:20:55Z</updated>
	<author>
		<name>oetting</name>
	</author>
	<content type="html">I want direct some attention to an issue I have reported. 
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://framework.zend.com/issues/browse/ZF-8063&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/issues/browse/ZF-8063&lt;/a&gt;&lt;br&gt;&lt;br&gt;The issue needs some discussion before any action can be taken. I guess I should have posted on the list before creating the issue, but better late than never :)</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-transactions-tp26284231p26284231.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26217855</id>
	<title>Re: Memory leak in ZF 1.7 in the adapter</title>
	<published>2009-11-05T08:25:56Z</published>
	<updated>2009-11-05T08:25:56Z</updated>
	<author>
		<name>Ralph Schindler-2</name>
	</author>
	<content type="html">Do you have the profiler turned on (it collects alot of information)? 
&lt;br&gt;Also, what adapter are you using, and what database vendor?
&lt;br&gt;&lt;br&gt;-ralph
&lt;br&gt;&lt;br&gt;Mathieu Suen wrote:
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; IIRC in the mailing list someone advise to upgrade the ZF to the 1.9 
&lt;br&gt;&amp;gt; because of a memory leak in ZF 1.7 or 1.8.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The leak was somewhere in the db library (maybe the adapter).
&lt;br&gt;&amp;gt; Dose someone have more detail on it?
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; 
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-leak-in-ZF-1.7-in-the-adapter-tp26197396p26217855.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26197396</id>
	<title>Memory leak in ZF 1.7 in the adapter</title>
	<published>2009-11-04T06:37:23Z</published>
	<updated>2009-11-04T06:37:23Z</updated>
	<author>
		<name>Mathieu Suen-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;IIRC in the mailing list someone advise to upgrade the ZF to the 1.9 
&lt;br&gt;because of a memory leak in ZF 1.7 or 1.8.
&lt;br&gt;&lt;br&gt;The leak was somewhere in the db library (maybe the adapter).
&lt;br&gt;Dose someone have more detail on it?
&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-- Mathieu Suen
&lt;br&gt;--
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memory-leak-in-ZF-1.7-in-the-adapter-tp26197396p26197396.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26197317</id>
	<title>Re: FetchAll Problem</title>
	<published>2009-11-04T06:32:09Z</published>
	<updated>2009-11-04T06:32:09Z</updated>
	<author>
		<name>Ralph Schindler-2</name>
	</author>
	<content type="html">E,
&lt;br&gt;&lt;br&gt;Try one of these instead:
&lt;br&gt;&lt;br&gt;$alumni-&amp;gt;fetchAll(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;$table-&amp;gt;select()-&amp;gt;where('alumni_Email = ?', $alumniEmail)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;);
&lt;br&gt;&lt;br&gt;OR, just quote the value
&lt;br&gt;&lt;br&gt;$row = $alumni-&amp;gt;fetchAll(
&lt;br&gt;&amp;nbsp; &amp;nbsp; 'alumni_Email = ' . $dbAdapter-&amp;gt;quote($alumniEmail)
&lt;br&gt;&amp;nbsp; &amp;nbsp; );
&lt;br&gt;&lt;br&gt;The problem is your $alumniEmail is not getting passed to the query as a 
&lt;br&gt;qouted value.
&lt;br&gt;&lt;br&gt;-ralph
&lt;br&gt;&lt;br&gt;&lt;br&gt;Erdal YAZICIOGLU wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello all
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am trying to create a registration form with ZF1.8. After user enters 
&lt;br&gt;&amp;gt; his email, I want to check whether that email address is already 
&lt;br&gt;&amp;gt; registered or not. But everytime I am having a MySQL synax error.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The code is
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if($form-&amp;gt;isValid($formData))
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alumniName = $form-&amp;gt;getValue('alumni_Name');
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alumniLastName = $form&amp;gt;getValue('alumni_LastName');
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alumniEmail = $form-&amp;gt;getValue('alumni_Email');
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alumniPassword = $form-&amp;gt;getValue('password');
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alumniGraduateDate = 
&lt;br&gt;&amp;gt; $form-&amp;gt;getValue('alumni_GraduateDate');
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alumniMemory= $form-&amp;gt;getValue('alumni_Memory');
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $alumni = new Model_DbTable_Alumni();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $row = $alumni-&amp;gt;fetchAll(' alumni_Email = ' . 
&lt;br&gt;&amp;gt; $alumniEmail);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(count($row&amp;gt;0))
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;throw new Exception('This email is already 
&lt;br&gt;&amp;gt; registered');
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; $alumni-&amp;gt;registerAlumni($alumniName,$alumniLastName,$alumniEmail,$alumniPassword,$alumniGraduateDate,$alumniMemory);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else {
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $form-&amp;gt;populate($formData);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The error I am having is
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; *Message:* SQLSTATE[42000]: Syntax error or access violation: 1064 You 
&lt;br&gt;&amp;gt; have an error in your SQL syntax; check the manual that corresponds to 
&lt;br&gt;&amp;gt; your MySQL server version for the right syntax to use near '@gmail.com) 
&lt;br&gt;&amp;gt; LIMIT 1' at line 1
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have lots queries running the same way. Is there any problem in the 
&lt;br&gt;&amp;gt; code that you can see but I can not..
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; E
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FetchAll-Problem-tp26193843p26197317.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196838</id>
	<title>What is the best way to configure Zend_Db::AUTO_QUOTE_IDENTIFIERS  with Zend Application ?</title>
	<published>2009-11-04T06:04:47Z</published>
	<updated>2009-11-04T06:04:47Z</updated>
	<author>
		<name>Gabriel Baez-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;What is the best way to configure   Zend Application Resources DB  to
&lt;br&gt;make  use of  Zend_Db::AUTO_QUOTE_IDENTIFIERS ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;My current configuration  is in  xml  format.
&lt;br&gt;&lt;br&gt;&lt;br&gt;In the bootstrap  I have
&lt;br&gt;&lt;br&gt;&lt;br&gt;public function _initDatabase()
&lt;br&gt;    {
&lt;br&gt;        $resource = $this-&amp;gt;bootstrap('db');
&lt;br&gt;        $db       = $this-&amp;gt;getResource('db');
&lt;br&gt;        //$db-&amp;gt;setAutoQuoteIdentifiers(false);
&lt;br&gt;        $db-&amp;gt;setFetchMode(Zend_Db::FETCH_OBJ);
&lt;br&gt;        Zend_Registry::set('db', $db);
&lt;br&gt;    }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I tried  setAutoQuoteIdentifiers(false)  but there is no such method &amp;nbsp;any ideas?
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/What-is-the-best-way-to-configure-Zend_Db%3A%3AAUTO_QUOTE_IDENTIFIERS--with-Zend-Application---tp26196838p26196838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196060</id>
	<title>Re: Zend Application Session SaveHandler DB Table issue</title>
	<published>2009-11-04T05:12:11Z</published>
	<updated>2009-11-04T05:12:11Z</updated>
	<author>
		<name>Gabriel Baez-2</name>
	</author>
	<content type="html">Sorry  I replied  off the mailing list earlier.&lt;br&gt;&lt;br&gt;&lt;br&gt; I created  the sequence just as suggested  and  it didn&amp;#39;t fix  the  issue &lt;br&gt;&lt;br&gt;CREATE SEQUENCE session__seq&lt;br&gt;
  INCREMENT 1&lt;br&gt;
  MINVALUE 1&lt;br&gt;
  MAXVALUE 9223372036854775807&lt;br&gt;
  START 5&lt;br&gt;
  CACHE 1;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Fatal error&lt;/b&gt;: Uncaught exception &amp;#39;Zend_Db_Statement_Exception&amp;#39;
with message &amp;#39;SQLSTATE[42601]: Syntax error: 7 ERROR: zero-length
delimited identifier at or near &amp;quot;&amp;quot;&amp;quot;&amp;quot;
LINE 1: ..., &amp;quot;name&amp;quot;, &amp;quot;modified&amp;quot;, &amp;quot;session_data&amp;quot;, &amp;quot;lifetime&amp;quot;, &amp;quot;&amp;quot;)
VALUES... ^&amp;#39; in
C:\Zend\Apache2\htdocs\&lt;div id=&quot;:32&quot; class=&quot;ii gt&quot;&gt;projects\genscript\library\Zend\Db\Statement\Pdo.php:234
Stack
trace:
#0
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement.php(320):
Zend_Db_Statement_Pdo-&amp;gt;_execute(Array)
#1
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(468):
Zend_Db_Statement-&amp;gt;execute(Array)
#2
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Pdo\Abstract.php(238):
Zend_Db_Adapter_Abstract-&amp;gt;query(&amp;#39;INSERT INTO &amp;quot;se...&amp;#39;, Array)
#3
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(546):
Zend_Db_Adapter_Pdo_Abstract-&amp;gt;query(&amp;#39;INSERT INTO &amp;quot;se...&amp;#39;, Array)
#4
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Table\Abstract.php(1056):
Z in &lt;b&gt;C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement\Pdo.php&lt;/b&gt; on line &lt;b&gt;234&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I recreated the table  according to the documentation   &lt;a href=&quot;http://framework.zend.com/manual/en/zend.session.savehandler.dbtable.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/manual/en/zend.session.savehandler.dbtable.html&lt;/a&gt;&lt;br&gt;

&lt;br&gt;&lt;br&gt;CREATE TABLE &amp;quot;session&amp;quot;&lt;div class=&quot;im&quot;&gt;&lt;br&gt;(&lt;br&gt;  session_id character(32) NOT NULL,&lt;br&gt;  save_path character varying(32) NOT NULL,&lt;br&gt;  &amp;quot;name&amp;quot; character varying(32) NOT NULL DEFAULT &amp;#39;&amp;#39;::character varying,&lt;br&gt;

  modified integer,&lt;br&gt;  lifetime integer,&lt;br&gt;  session_data text,&lt;br&gt;&lt;/div&gt;  CONSTRAINT session_pk PRIMARY KEY (session_id, save_path)&lt;br&gt;)&lt;br&gt;WITH (&lt;br&gt;  OIDS=FALSE&lt;br&gt;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;however with this same table structure,   if  I remove the resource session  config  off the resources   and  configured it per the example  at  &lt;a href=&quot;http://framework.zend.com/manual/en/zend.session.savehandler.dbtable.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/manual/en/zend.session.savehandler.dbtable.html&lt;/a&gt;   on  the boostrap.    Then  it works  fine  I see an entry in the database.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;public  function _initSessions()&lt;br&gt;{&lt;br&gt;    $config = array(&lt;br&gt;    &amp;#39;name&amp;#39;              =&amp;gt; &amp;#39;session&amp;#39;, //table name as per Zend_Db_Table&lt;br&gt;    &amp;#39;primary&amp;#39;           =&amp;gt; array(&lt;br&gt;        &amp;#39;session_id&amp;#39;,   //the sessionID given by PHP&lt;br&gt;
        &amp;#39;save_path&amp;#39;,    //session.save_path&lt;br&gt;        &amp;#39;name&amp;#39;,         //session name&lt;br&gt;    ),&lt;br&gt;    &amp;#39;primaryAssignment&amp;#39; =&amp;gt; array(&lt;br&gt;        //you must tell the save handler which columns you&lt;br&gt;
        //are using as the primary key. ORDER IS IMPORTANT&lt;br&gt;        &amp;#39;sessionId&amp;#39;, //first column of the primary key is of the sessionID&lt;br&gt;        &amp;#39;sessionSavePath&amp;#39;, //second column of the primary key is the save path&lt;br&gt;
        &amp;#39;sessionName&amp;#39;, //third column of the primary key is the session name&lt;br&gt;    ),&lt;br&gt;    &amp;#39;modifiedColumn&amp;#39;    =&amp;gt; &amp;#39;modified&amp;#39;,     //time the session should expire&lt;br&gt;    &amp;#39;dataColumn&amp;#39;        =&amp;gt; &amp;#39;session_data&amp;#39;, //serialized data&lt;br&gt;
    &amp;#39;lifetimeColumn&amp;#39;    =&amp;gt; &amp;#39;lifetime&amp;#39;,     //end of life for a specific record&lt;br&gt;);&lt;br&gt;&lt;br&gt;//Tell Zend_Session to use your Save Handler&lt;br&gt;Zend_Session::setSaveHandler(new Zend_Session_SaveHandler_DbTable($config));&lt;br&gt;
&lt;br&gt;//start your session&lt;br&gt;Zend_Session::start();    &lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Server [localhost]:&lt;br&gt;Database [postgres]: bohiti&lt;br&gt;Port [5432]:&lt;br&gt;Username [postgres]:&lt;br&gt;psql (8.4.0)&lt;br&gt;WARNING: Console code page (437) differs from Windows code page (1252)&lt;br&gt;
         8-bit characters might not work correctly. See psql reference&lt;br&gt;         page &amp;quot;Notes for Windows users&amp;quot; for details.&lt;br&gt;Type &amp;quot;help&amp;quot; for help.&lt;br&gt;&lt;br&gt;bohiti=# select * from session&lt;br&gt;bohiti-# ;&lt;br&gt;
            session_id            | save_path |   name    |  modified  | lifetim&lt;br&gt;e | session_data&lt;br&gt;----------------------------------+-----------+-----------+------------+--------&lt;br&gt;--+--------------&lt;br&gt; kv72hog6jiqk02653qlul20kc7       |           | PHPSESSID | 1257339780 |     144&lt;br&gt;
0 |&lt;br&gt; pu5p31gtbouls2acd1ntlbm564       |           | PHPSESSID | 1257339788 |     144&lt;br&gt;0 |&lt;br&gt;(2 rows)&lt;br&gt;&lt;br&gt;&lt;br&gt;bohiti=#&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Why does it not work  with  &lt;span class=&quot;sect2&quot;&gt;&lt;/span&gt;&lt;a href=&quot;http://framework.zend.com/manual/en/zend.application.available-resources.html#zend.application.available-resources.db&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt; Zend_Application_Resource_Db&lt;/a&gt;  ?   I think it has something  to do with it trying to insert the data differently ?  double quotes?  instead of quotes  ?  &lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 3, 2009 at 9:09 PM, Gabriel Baez &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sheik316@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I&amp;#39;m having issues  trying to use  Zend Application Resource Session  with Save Handler DB Table.&lt;br&gt;&lt;br&gt;I&amp;#39;m getting the following  error.&lt;br&gt;&lt;br&gt;&lt;b&gt;Fatal error&lt;/b&gt;: Uncaught exception &amp;#39;Zend_Db_Statement_Exception&amp;#39;
with message &amp;#39;SQLSTATE[42P01]: Undefined table: 7 ERROR: relation
&amp;quot;session__seq&amp;quot; does not exist
LINE 1: SELECT NEXTVAL(&amp;#39;&amp;quot;session__seq&amp;quot;&amp;#39;) ^&amp;#39; in
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement\Pdo.php:234
Stack
trace:
#0
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement.php(320):
Zend_Db_Statement_Pdo-&amp;gt;_execute(Array)
#1
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(468):
Zend_Db_Statement-&amp;gt;execute(Array)
#2
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Pdo\Abstract.php(238):
Zend_Db_Adapter_Abstract-&amp;gt;query(&amp;#39;SELECT NEXTVAL(...&amp;#39;, Array)
#3
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(799):
Zend_Db_Adapter_Pdo_Abstract-&amp;gt;query(&amp;#39;SELECT NEXTVAL(...&amp;#39;, Array)
#4
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Pdo\Pgsql.php(299):
Zend_Db_Adapter_Abstract-&amp;gt;fetchOne(&amp;#39;SELECT NEXTVAL(...&amp;#39;)
#5 C:\Zend\Apache2\ht in &lt;b&gt;C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement\Pdo.php&lt;/b&gt; on line &lt;b&gt;234&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;My configuration is the following:&lt;br&gt;&lt;br&gt;obviously I removed the username and password for this post.&lt;br&gt;

&lt;br&gt;&lt;br&gt;&amp;lt;resources&amp;gt;&lt;br&gt;            &amp;lt;modules&amp;gt;&lt;br&gt;                &amp;lt;!-- Placeholder to ensure an array is created --&amp;gt;&lt;br&gt;                &amp;lt;placeholder /&amp;gt;&lt;br&gt;            &amp;lt;/modules&amp;gt;&lt;br&gt;            &amp;lt;db&amp;gt;&lt;br&gt;

                &amp;lt;adapter&amp;gt;Pdo_Pgsql&amp;lt;/adapter&amp;gt;&lt;br&gt;                &amp;lt;params&amp;gt;&lt;br&gt;                    &amp;lt;host&amp;gt;localhost&amp;lt;/host&amp;gt;&lt;br&gt;                    &amp;lt;username&amp;gt;&amp;lt;/username&amp;gt;&lt;br&gt;                    &amp;lt;password&amp;gt;&amp;lt;/password&amp;gt;&lt;br&gt;

                    &amp;lt;dbname&amp;gt;test_db&amp;lt;/dbname&amp;gt;&lt;br&gt;                    &amp;lt;port&amp;gt;5432&amp;lt;/port&amp;gt;&lt;br&gt;                &amp;lt;/params&amp;gt;&lt;br&gt;                &amp;lt;isDefaultTableAdapter&amp;gt;true&amp;lt;/isDefaultTableAdapter&amp;gt;&lt;br&gt;

            &amp;lt;/db&amp;gt;&lt;br&gt;            &amp;lt;session&amp;gt;&lt;br&gt;                &amp;lt;save_path&amp;gt;&amp;lt;zf:const zf:name=&amp;quot;APPLICATION_PATH&amp;quot; /&amp;gt;/../data/sessions&amp;lt;/save_path&amp;gt;&lt;br&gt;                &amp;lt;use_only_cookies&amp;gt;true&amp;lt;/use_only_cookies&amp;gt;&lt;br&gt;

                &amp;lt;remember_me_seconds&amp;gt;864000&amp;lt;/remember_me_seconds&amp;gt;&lt;br&gt;                &amp;lt;saveHandler&amp;gt;&lt;br&gt;                    &amp;lt;class&amp;gt;Zend_Session_SaveHandler_DbTable&amp;lt;/class&amp;gt;&lt;br&gt;                    &amp;lt;options&amp;gt;&lt;br&gt;

                        &amp;lt;name&amp;gt;session&amp;lt;/name&amp;gt;&lt;br&gt;                        &amp;lt;primary&amp;gt;&lt;br&gt;                            &amp;lt;session_id&amp;gt;session_id&amp;lt;/session_id&amp;gt;&lt;br&gt;                            &amp;lt;save_path&amp;gt;save_path&amp;lt;/save_path&amp;gt;&lt;br&gt;

                            &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;br&gt;                        &amp;lt;/primary&amp;gt;&lt;br&gt;                        &amp;lt;primaryAssignment&amp;gt;&lt;br&gt;                            &amp;lt;sessionId&amp;gt;sessionId&amp;lt;/sessionId&amp;gt;&lt;br&gt;

                            &amp;lt;sessionSavePath&amp;gt;sessionSavePath&amp;lt;/sessionSavePath&amp;gt;&lt;br&gt;                            &amp;lt;sessionName&amp;gt;sessionName&amp;lt;/sessionName&amp;gt;&lt;br&gt;                        &amp;lt;/primaryAssignment&amp;gt;&lt;br&gt;

                        &amp;lt;modifiedColumn&amp;gt;modified&amp;lt;/modifiedColumn&amp;gt;&lt;br&gt;                        &amp;lt;dataColumn&amp;gt;session_data&amp;lt;/dataColumn&amp;gt;&lt;br&gt;                        &amp;lt;lifetimeColumn&amp;gt;lifetime&amp;lt;/lifetimeColumn&amp;gt;&lt;br&gt;

                    &amp;lt;/options&amp;gt;&lt;br&gt;                &amp;lt;/saveHandler&amp;gt;&lt;br&gt;            &amp;lt;/session&amp;gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Table Structure:&lt;br&gt;&lt;br&gt;I added the column &amp;quot;session&amp;quot; to see if it fixes  it but it did not help.&lt;br&gt;

&lt;br&gt;&lt;br&gt;&lt;br&gt;CREATE TABLE &amp;quot;session&amp;quot;&lt;br&gt;(&lt;br&gt;  &amp;quot;session&amp;quot; serial NOT NULL,&lt;br&gt;  session_id character(32) NOT NULL,&lt;br&gt;  save_path character varying(32) NOT NULL,&lt;br&gt;  &amp;quot;name&amp;quot; character varying(32) NOT NULL DEFAULT &amp;#39;&amp;#39;::character varying,&lt;br&gt;

  modified integer,&lt;br&gt;  lifetime integer,&lt;br&gt;  session_data text,&lt;br&gt;  CONSTRAINT session_pk PRIMARY KEY (session, session_id)&lt;br&gt;)&lt;br&gt;WITH (&lt;br&gt;  OIDS=FALSE&lt;br&gt;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Index: session_idx&lt;br&gt;&lt;br&gt;-- DROP INDEX session_idx;&lt;br&gt;

&lt;br&gt;CREATE UNIQUE INDEX session_idx&lt;br&gt;  ON &amp;quot;session&amp;quot;&lt;br&gt;  USING btree&lt;br&gt;  (session);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/b&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend-Application-Session-SaveHandler-DB-Table-issue-tp26190378p26196060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26193843</id>
	<title>FetchAll Problem</title>
	<published>2009-11-04T02:20:01Z</published>
	<updated>2009-11-04T02:20:01Z</updated>
	<author>
		<name>CEHTURK</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=TR link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 face=&quot;Courier New&quot;&gt;&lt;span style='font-size:
10.0pt'&gt;Hello all&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;I am trying to create a registration form
with ZF1.8. After user enters his email, I want to check whether that email
address is already registered or not. But everytime I am having a MySQL synax
error.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;The code is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;if($form-&amp;gt;isValid($formData))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumniName =
$form-&amp;gt;getValue('alumni_Name');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumniLastName =
$form&amp;gt;getValue('alumni_LastName');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumniEmail =
$form-&amp;gt;getValue('alumni_Email');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumniPassword =
$form-&amp;gt;getValue('password');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumniGraduateDate
= $form-&amp;gt;getValue('alumni_GraduateDate');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumniMemory=
$form-&amp;gt;getValue('alumni_Memory');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumni = new
Model_DbTable_Alumni();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $row =
$alumni-&amp;gt;fetchAll(' alumni_Email = ' . $alumniEmail);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(count($row&amp;gt;0))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new
Exception('This email is already registered');&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $alumni-&amp;gt;registerAlumni($alumniName,$alumniLastName,$alumniEmail,$alumniPassword,$alumniGraduateDate,$alumniMemory);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $form-&amp;gt;populate($formData);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoPlainText&gt;&lt;font size=2 color=black face=&quot;Courier New&quot;&gt;&lt;span style='font-size:10.0pt;color:black'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;The error I am having is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial;font-weight:bold'&gt;Message:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;&amp;nbsp;SQLSTATE[42000]:
Syntax error or access violation: 1064 You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right
syntax to use near '@gmail.com) LIMIT 1' at line 1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;I have lots queries running the same way. Is there any
problem in the code that you can see but I can not..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Regards&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;E&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FetchAll-Problem-tp26193843p26193843.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26191189</id>
	<title>Re: Zend Application Session SaveHandler DB Table issue</title>
	<published>2009-11-03T21:23:21Z</published>
	<updated>2009-11-03T21:23:21Z</updated>
	<author>
		<name>conf</name>
	</author>
	<content type="html">&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;I&amp;#39;m having issues  trying to use  Zend Application Resource Session  with Save Handler DB Table.&lt;br&gt;

&lt;br&gt;I&amp;#39;m getting the following  error.&lt;br&gt;&lt;br&gt;&lt;b&gt;Fatal error&lt;/b&gt;: Uncaught exception &amp;#39;Zend_Db_Statement_Exception&amp;#39;
with message &amp;#39;SQLSTATE[42P01]: Undefined table: 7 ERROR: relation
&amp;quot;session__seq&amp;quot; does not exist
LINE 1: SELECT NEXTVAL(&amp;#39;&amp;quot;session__seq&amp;quot;&amp;#39;) ^&amp;#39; in
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement\Pdo.php:234
Stack
trace:
#0
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement.php(320):
Zend_Db_Statement_Pdo-&amp;gt;_execute(Array)
#1
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(468):
Zend_Db_Statement-&amp;gt;execute(Array)
#2
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Pdo\Abstract.php(238):
Zend_Db_Adapter_Abstract-&amp;gt;query(&amp;#39;SELECT NEXTVAL(...&amp;#39;, Array)
#3
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(799):
Zend_Db_Adapter_Pdo_Abstract-&amp;gt;query(&amp;#39;SELECT NEXTVAL(...&amp;#39;, Array)
#4
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Pdo\Pgsql.php(299):
Zend_Db_Adapter_Abstract-&amp;gt;fetchOne(&amp;#39;SELECT NEXTVAL(...&amp;#39;)
#5 C:\Zend\Apache2\ht in &lt;b&gt;C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement\Pdo.php&lt;/b&gt; on line &lt;b&gt;234&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/b&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Your database configuration required sequence with the name session__seq for generating auto-increment values, which doesn&amp;#39;t exist.&lt;br&gt;

&lt;/div&gt;&lt;/div&gt;&lt;br&gt;It&amp;#39;s written just here:&lt;br&gt;&lt;b&gt;Fatal error&lt;/b&gt;: Uncaught exception &amp;#39;Zend_Db_Statement_Exception&amp;#39;
with message &lt;br&gt;&amp;#39;SQLSTATE[42P01]: Undefined table: 7 ERROR: relation
&amp;quot;session__seq&amp;quot; does not exist
&lt;br&gt;LINE 1: SELECT NEXTVAL(&amp;#39;&amp;quot;session__seq&amp;quot;&amp;#39;) ^&amp;#39;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Regards,&lt;br&gt;Shein Alexey&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend-Application-Session-SaveHandler-DB-Table-issue-tp26190378p26191189.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26190378</id>
	<title>Zend Application Session SaveHandler DB Table issue</title>
	<published>2009-11-03T19:09:58Z</published>
	<updated>2009-11-03T19:09:58Z</updated>
	<author>
		<name>Gabriel Baez-2</name>
	</author>
	<content type="html">I&amp;#39;m having issues  trying to use  Zend Application Resource Session  with Save Handler DB Table.&lt;br&gt;&lt;br&gt;I&amp;#39;m getting the following  error.&lt;br&gt;&lt;br&gt;&lt;b&gt;Fatal error&lt;/b&gt;: Uncaught exception &amp;#39;Zend_Db_Statement_Exception&amp;#39;
with message &amp;#39;SQLSTATE[42P01]: Undefined table: 7 ERROR: relation
&amp;quot;session__seq&amp;quot; does not exist
LINE 1: SELECT NEXTVAL(&amp;#39;&amp;quot;session__seq&amp;quot;&amp;#39;) ^&amp;#39; in
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement\Pdo.php:234
Stack
trace:
#0
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement.php(320):
Zend_Db_Statement_Pdo-&amp;gt;_execute(Array)
#1
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(468):
Zend_Db_Statement-&amp;gt;execute(Array)
#2
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Pdo\Abstract.php(238):
Zend_Db_Adapter_Abstract-&amp;gt;query(&amp;#39;SELECT NEXTVAL(...&amp;#39;, Array)
#3
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Abstract.php(799):
Zend_Db_Adapter_Pdo_Abstract-&amp;gt;query(&amp;#39;SELECT NEXTVAL(...&amp;#39;, Array)
#4
C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Adapter\Pdo\Pgsql.php(299):
Zend_Db_Adapter_Abstract-&amp;gt;fetchOne(&amp;#39;SELECT NEXTVAL(...&amp;#39;)
#5 C:\Zend\Apache2\ht in &lt;b&gt;C:\Zend\Apache2\htdocs\projects\genscript\library\Zend\Db\Statement\Pdo.php&lt;/b&gt; on line &lt;b&gt;234&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;My configuration is the following:&lt;br&gt;&lt;br&gt;obviously I removed the username and password for this post.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&amp;lt;resources&amp;gt;&lt;br&gt;            &amp;lt;modules&amp;gt;&lt;br&gt;                &amp;lt;!-- Placeholder to ensure an array is created --&amp;gt;&lt;br&gt;                &amp;lt;placeholder /&amp;gt;&lt;br&gt;            &amp;lt;/modules&amp;gt;&lt;br&gt;            &amp;lt;db&amp;gt;&lt;br&gt;
                &amp;lt;adapter&amp;gt;Pdo_Pgsql&amp;lt;/adapter&amp;gt;&lt;br&gt;                &amp;lt;params&amp;gt;&lt;br&gt;                    &amp;lt;host&amp;gt;localhost&amp;lt;/host&amp;gt;&lt;br&gt;                    &amp;lt;username&amp;gt;&amp;lt;/username&amp;gt;&lt;br&gt;                    &amp;lt;password&amp;gt;&amp;lt;/password&amp;gt;&lt;br&gt;
                    &amp;lt;dbname&amp;gt;test_db&amp;lt;/dbname&amp;gt;&lt;br&gt;                    &amp;lt;port&amp;gt;5432&amp;lt;/port&amp;gt;&lt;br&gt;                &amp;lt;/params&amp;gt;&lt;br&gt;                &amp;lt;isDefaultTableAdapter&amp;gt;true&amp;lt;/isDefaultTableAdapter&amp;gt;&lt;br&gt;
            &amp;lt;/db&amp;gt;&lt;br&gt;            &amp;lt;session&amp;gt;&lt;br&gt;                &amp;lt;save_path&amp;gt;&amp;lt;zf:const zf:name=&amp;quot;APPLICATION_PATH&amp;quot; /&amp;gt;/../data/sessions&amp;lt;/save_path&amp;gt;&lt;br&gt;                &amp;lt;use_only_cookies&amp;gt;true&amp;lt;/use_only_cookies&amp;gt;&lt;br&gt;
                &amp;lt;remember_me_seconds&amp;gt;864000&amp;lt;/remember_me_seconds&amp;gt;&lt;br&gt;                &amp;lt;saveHandler&amp;gt;&lt;br&gt;                    &amp;lt;class&amp;gt;Zend_Session_SaveHandler_DbTable&amp;lt;/class&amp;gt;&lt;br&gt;                    &amp;lt;options&amp;gt;&lt;br&gt;
                        &amp;lt;name&amp;gt;session&amp;lt;/name&amp;gt;&lt;br&gt;                        &amp;lt;primary&amp;gt;&lt;br&gt;                            &amp;lt;session_id&amp;gt;session_id&amp;lt;/session_id&amp;gt;&lt;br&gt;                            &amp;lt;save_path&amp;gt;save_path&amp;lt;/save_path&amp;gt;&lt;br&gt;
                            &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;br&gt;                        &amp;lt;/primary&amp;gt;&lt;br&gt;                        &amp;lt;primaryAssignment&amp;gt;&lt;br&gt;                            &amp;lt;sessionId&amp;gt;sessionId&amp;lt;/sessionId&amp;gt;&lt;br&gt;
                            &amp;lt;sessionSavePath&amp;gt;sessionSavePath&amp;lt;/sessionSavePath&amp;gt;&lt;br&gt;                            &amp;lt;sessionName&amp;gt;sessionName&amp;lt;/sessionName&amp;gt;&lt;br&gt;                        &amp;lt;/primaryAssignment&amp;gt;&lt;br&gt;
                        &amp;lt;modifiedColumn&amp;gt;modified&amp;lt;/modifiedColumn&amp;gt;&lt;br&gt;                        &amp;lt;dataColumn&amp;gt;session_data&amp;lt;/dataColumn&amp;gt;&lt;br&gt;                        &amp;lt;lifetimeColumn&amp;gt;lifetime&amp;lt;/lifetimeColumn&amp;gt;&lt;br&gt;
                    &amp;lt;/options&amp;gt;&lt;br&gt;                &amp;lt;/saveHandler&amp;gt;&lt;br&gt;            &amp;lt;/session&amp;gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Table Structure:&lt;br&gt;&lt;br&gt;I added the column &amp;quot;session&amp;quot; to see if it fixes  it but it did not help.&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;CREATE TABLE &amp;quot;session&amp;quot;&lt;br&gt;(&lt;br&gt;  &amp;quot;session&amp;quot; serial NOT NULL,&lt;br&gt;  session_id character(32) NOT NULL,&lt;br&gt;  save_path character varying(32) NOT NULL,&lt;br&gt;  &amp;quot;name&amp;quot; character varying(32) NOT NULL DEFAULT &amp;#39;&amp;#39;::character varying,&lt;br&gt;
  modified integer,&lt;br&gt;  lifetime integer,&lt;br&gt;  session_data text,&lt;br&gt;  CONSTRAINT session_pk PRIMARY KEY (session, session_id)&lt;br&gt;)&lt;br&gt;WITH (&lt;br&gt;  OIDS=FALSE&lt;br&gt;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Index: session_idx&lt;br&gt;&lt;br&gt;-- DROP INDEX session_idx;&lt;br&gt;
&lt;br&gt;CREATE UNIQUE INDEX session_idx&lt;br&gt;  ON &amp;quot;session&amp;quot;&lt;br&gt;  USING btree&lt;br&gt;  (session);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/b&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend-Application-Session-SaveHandler-DB-Table-issue-tp26190378p26190378.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26180116</id>
	<title>Re: Non obvious parameter</title>
	<published>2009-11-03T06:05:20Z</published>
	<updated>2009-11-03T06:05:20Z</updated>
	<author>
		<name>Nicolas GREVET</name>
	</author>
	<content type="html">Yeah, it has always been like this. In this kind of situation, all 
&lt;br&gt;you're left with is looking at the source code itself or crawling the 
&lt;br&gt;official doc for some answers... But when you're using an IDE like 
&lt;br&gt;NetBeans or Eclipse, it's a real pain...
&lt;br&gt;&lt;br&gt;&lt;br&gt;Mathieu Suen a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is some random feedback on the way method are document.
&lt;br&gt;&amp;gt; IMHO When implementing a method it should be quite obvious what to 
&lt;br&gt;&amp;gt; pass in parameter or it should be implement in an other way.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In Zend I see a lot of comment like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; @param mixed $spec The column(s) and direction to order by
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; qWhat the hell is this strange obscure mixed parameter?
&lt;br&gt;&amp;gt; It could be:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; array('col_name1', 'col_name2')
&lt;br&gt;&amp;gt; array('col_name1' =&amp;gt; 'ASC', 'col_name2' =&amp;gt; 'DESC')
&lt;br&gt;&amp;gt; array('col_name1', 'col_name2' =&amp;gt; 'DESC')
&lt;br&gt;&amp;gt; 'col_name1 ASC, col_name2 DESC'
&lt;br&gt;&amp;gt; 'col_name1, col_name2 DESC'
&lt;br&gt;&amp;gt; array('ASC' =&amp;gt; array( 'col_name2', &amp;nbsp;'col_name1'))
&lt;br&gt;&amp;gt; array('col_name1 ASC', 'col_name2 DESC')
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do you suggest me to flip the coin?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Non-obvious-parameter-tp26179253p26180116.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26179253</id>
	<title>Non obvious parameter</title>
	<published>2009-11-03T05:02:10Z</published>
	<updated>2009-11-03T05:02:10Z</updated>
	<author>
		<name>Mathieu Suen-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Here is some random feedback on the way method are document.
&lt;br&gt;IMHO When implementing a method it should be quite obvious what to pass 
&lt;br&gt;in parameter or it should be implement in an other way.
&lt;br&gt;&lt;br&gt;In Zend I see a lot of comment like:
&lt;br&gt;&lt;br&gt;@param mixed $spec The column(s) and direction to order by
&lt;br&gt;&lt;br&gt;qWhat the hell is this strange obscure mixed parameter?
&lt;br&gt;It could be:
&lt;br&gt;&lt;br&gt;array('col_name1', 'col_name2')
&lt;br&gt;array('col_name1' =&amp;gt; 'ASC', 'col_name2' =&amp;gt; 'DESC')
&lt;br&gt;array('col_name1', 'col_name2' =&amp;gt; 'DESC')
&lt;br&gt;'col_name1 ASC, col_name2 DESC'
&lt;br&gt;'col_name1, col_name2 DESC'
&lt;br&gt;array('ASC' =&amp;gt; array( 'col_name2', &amp;nbsp;'col_name1'))
&lt;br&gt;array('col_name1 ASC', 'col_name2 DESC')
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;Do you suggest me to flip the coin?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-- Mathieu Suen
&lt;br&gt;--
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Non-obvious-parameter-tp26179253p26179253.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26157981</id>
	<title>Re: How can I to print Json formated response?</title>
	<published>2009-11-01T19:31:27Z</published>
	<updated>2009-11-01T19:31:27Z</updated>
	<author>
		<name>kwylez</name>
	</author>
	<content type="html">You could use contextSwitching for that particular action.  By default the ajax response will be text/html with ZF.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.contextswitch&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.contextswitch&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;You can set the available format to be json and in your url just add &amp;quot;/format/json&amp;quot;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Zend will automatically change the response type to json, which is what you are looking to do.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;If you don&amp;#39;t want to go through all of that then you can for the http response to JSON.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Oct 30, 2009 at 7:41 PM, Gray Fox &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26157981&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gmefox@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;br&gt;
That may not necessarily be the problem, but did you try specifying the&lt;br&gt;
response type (adding &amp;quot;json&amp;quot; as the 4th parameter in the $.post() call)?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
BEREGU wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hello,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I wanted to print json formatted response, which is passed from&lt;br&gt;
&amp;gt; controller passing to a view script.&lt;br&gt;
&amp;gt; The response, which is catched with firebug is:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; |{&amp;quot;ai80&amp;quot;:&amp;quot;1050&amp;quot;,&amp;quot;ai92&amp;quot;:&amp;quot;1100&amp;quot;,&amp;quot;diesel&amp;quot;:&amp;quot;1300&amp;quot;}|&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; But I can&amp;#39;t see any of those values on my browser. Please advice me what&lt;br&gt;
&amp;gt; I made wrong.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In the controller:&lt;br&gt;
&amp;gt; =============&lt;br&gt;
&amp;gt; $fuels = new BEREGU_FuelsDbTable();&lt;br&gt;
&amp;gt; $result = $fuels-&amp;gt;fetchAll();&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; foreach ($result as $fuel){&lt;br&gt;
&amp;gt;             switch ($fuel-&amp;gt;id) {&lt;br&gt;
&amp;gt;                 case &amp;#39;2&amp;#39;:&lt;br&gt;
&amp;gt;                     $ai80 = $fuel-&amp;gt;price;&lt;br&gt;
&amp;gt;                 break;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;                 case &amp;#39;3&amp;#39;:&lt;br&gt;
&amp;gt;                     $ai92 = $fuel-&amp;gt;price;&lt;br&gt;
&amp;gt;                 break;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;                 case &amp;#39;6&amp;#39;:&lt;br&gt;
&amp;gt;                     $diesel = $fuel-&amp;gt;price;&lt;br&gt;
&amp;gt;                 break;&lt;br&gt;
&amp;gt;             }&lt;br&gt;
&amp;gt;         }&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; $item = array();&lt;br&gt;
&amp;gt; $item[&amp;#39;ai80&amp;#39;] = $ai80;&lt;br&gt;
&amp;gt; $item[&amp;#39;ai92&amp;#39;] = $ai92;&lt;br&gt;
&amp;gt; $item[&amp;#39;diesel&amp;#39;] = $diesel;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; echo Zend_Json_Encoder::encode($item);&lt;br&gt;
&amp;gt; ///////////////////////////////&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In the view script&lt;br&gt;
&amp;gt; =============&lt;br&gt;
&amp;gt; function getPriceJson(volume)&lt;br&gt;
&amp;gt;     {&lt;br&gt;
&amp;gt;         $.post(&lt;br&gt;
&amp;gt;         &amp;quot;/async/getprice&amp;quot;,&lt;br&gt;
&amp;gt;         {&lt;br&gt;
&amp;gt;             &amp;quot;volume&amp;quot; :    volume&lt;br&gt;
&amp;gt;         },&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         function(response)&lt;br&gt;
&amp;gt;         {&lt;br&gt;
&amp;gt;             $(&amp;quot;#ai92&amp;quot;).append(&amp;quot; # &amp;quot;+response.diesel+&amp;quot; &amp;quot;);&lt;br&gt;
&amp;gt;             $(&amp;quot;#ai80&amp;quot;).append(response.ai80);&lt;br&gt;
&amp;gt;             $(&amp;quot;#diesel&amp;quot;).append(response.diesel);&lt;br&gt;
&amp;gt;         });&lt;br&gt;
&amp;gt;     }&lt;br&gt;
&amp;gt; //////////////////////////////////////&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Sincerely,&lt;br&gt;
&amp;gt; Enkhbilguun Erdenetsogt&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; begin:vcard&lt;br&gt;
&amp;gt; fn:Enkhbilguun Erdenetsogt&lt;br&gt;
&amp;gt; n:Erdenetsogt;Enkhbilguun&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26157981&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;email%3Binternet%3Aenkhbilguun@...&lt;/a&gt;&lt;br&gt;
&amp;gt; tel;cell:99113638&lt;br&gt;
&amp;gt; x-mozilla-html:TRUE&lt;br&gt;
&amp;gt; version:2.1&lt;br&gt;
&amp;gt; end:vcard&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/How-can-I-to-print-Json-formated-response--tp26111958p26139117.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/How-can-I-to-print-Json-formated-response--tp26111958p26139117.html&lt;/a&gt;&lt;br&gt;

Sent from the Zend DB mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Cory Wiles&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26157981&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kwylez@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.corywiles.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.corywiles.com&lt;/a&gt; | &lt;a href=&quot;http://www.feedfootball.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.feedfootball.com&lt;/a&gt; &lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-can-I-to-print-Json-formated-response--tp26111958p26157981.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26154641</id>
	<title>Re: weird Zend_Db_Table_Abstract behaviour</title>
	<published>2009-11-01T13:45:32Z</published>
	<updated>2009-11-01T13:45:32Z</updated>
	<author>
		<name>nulele</name>
	</author>
	<content type="html">Yes... I would have thought it...
&lt;br&gt;I'll follow your suggestion to wrap the update in a try/catch statement. 
&lt;br&gt;Many thanks!!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;quote author=&quot;prodigitalson&quot;&gt;&lt;br&gt;The result is successful. Update returns the number of affected rows. IF there is nothing to update it will retun 0 which is going to eval to false. IF something goes wrong in the query its going to throw an exception, not return false.
&lt;br&gt;&lt;br&gt;if you want to check that the qurey went through then wrap your update in a try catch and return false in the catch.
&lt;br&gt;&lt;br&gt;If on the other hand you are expecting to at least have one row modified then you can test agianst &amp;gt; 0.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;nulele wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;I don't know why, but when I call the method below and there's nothing to update (datas are not changed) it returns false... I mean is this normal?
&lt;br&gt;Even if datas are not changed I would expect a successful result of the update operation... it simply would update nothing!!
&lt;br&gt;&lt;br&gt;class Model_DbTable_Users extends Zend_Db_Table_Abstract
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected $_name = 'users';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected $_primary = 'id_user';
&lt;br&gt;&lt;br&gt;....
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public function updateData($data, $id)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $id = (int)$id;		
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	if($this-&amp;gt;update($data, &amp;quot;id_user = &amp;quot; . $id))
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	{
&lt;br&gt;&amp;nbsp; &amp;nbsp; 		return true;	
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Maybe the problem could be NOT NULL fileds in the db?
&lt;br&gt;I know, would be better to include the update code in a try/catch statement, but I want to hear your opinion on this weird behaviour.
&lt;br&gt;&lt;br&gt;Thanks
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;/quote&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26154641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26148578</id>
	<title>Re: weird Zend_Db_Table_Abstract behaviour</title>
	<published>2009-10-31T23:29:01Z</published>
	<updated>2009-10-31T23:29:01Z</updated>
	<author>
		<name>prodigitalson</name>
	</author>
	<content type="html">The result is successful. Update returns the number of affected rows. IF there is nothing to update it will retun 0 which is going to eval to false. IF something goes wrong in the query its going to throw an exception, not return false.
&lt;br&gt;&lt;br&gt;if you want to check that the qurey went through then wrap your update in a try catch and return false in the catch.
&lt;br&gt;&lt;br&gt;If on the other hand you are expecting to at least have one row modified then you can test agianst &amp;gt; 0.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;nulele wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;I don't know why, but when I call the method below and there's nothing to update (datas are not changed) it returns false... I mean is this normal?
&lt;br&gt;Even if datas are not changed I would expect a successful result of the update operation... it simply would update nothing!!
&lt;br&gt;&lt;br&gt;class Model_DbTable_Users extends Zend_Db_Table_Abstract
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected $_name = 'users';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected $_primary = 'id_user';
&lt;br&gt;&lt;br&gt;....
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public function updateData($data, $id)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $id = (int)$id;		
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	if($this-&amp;gt;update($data, &amp;quot;id_user = &amp;quot; . $id))
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	{
&lt;br&gt;&amp;nbsp; &amp;nbsp; 		return true;	
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Maybe the problem could be NOT NULL fileds in the db?
&lt;br&gt;I know, would be better to include the update code in a try/catch statement, but I want to hear your opinion on this weird behaviour.
&lt;br&gt;&lt;br&gt;Thanks
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26148578.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26144290</id>
	<title>Re: weird Zend_Db_Table_Abstract behaviour</title>
	<published>2009-10-31T10:49:38Z</published>
	<updated>2009-10-31T10:49:38Z</updated>
	<author>
		<name>nulele</name>
	</author>
	<content type="html">I'm sure all input parameters are valid... the problem only occurs if datas don't need to be updated.
&lt;br&gt;&lt;br&gt;I can extend my question: how do you check db operation (insert/update/delete) if something goes wrong?
&lt;br&gt;&lt;br&gt;bye
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;tfk wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;On Fri, Oct 30, 2009 at 9:00 PM, nulele &amp;lt;nulele@gmail.com&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I don't know why, but when I call the method below and there's nothing to
&lt;br&gt;&amp;gt; update (datas are not changed) it returns false... I mean is this normal?
&lt;br&gt;&amp;gt; Even if datas are not changed I would expect a successful result of the
&lt;br&gt;&amp;gt; update operation... it simply would update nothing!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class Model_DbTable_Users extends Zend_Db_Table_Abstract
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt;        protected $_name = 'users';
&lt;br&gt;&amp;gt;        protected $_primary = 'id_user';
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        public function updateData($data, $id)
&lt;br&gt;&amp;gt;        {
&lt;br&gt;&amp;gt;                $id = (int)$id;
&lt;br&gt;&lt;br&gt;Maybe $id is casted to 0 here, and nothing matches?
&lt;br&gt;&lt;br&gt;Till
&lt;br&gt;&lt;br&gt;&amp;gt;        if($this-&amp;gt;update($data, &amp;quot;id_user = &amp;quot; . $id))
&lt;br&gt;&amp;gt;        {
&lt;br&gt;&amp;gt;                return true;
&lt;br&gt;&amp;gt;        }
&lt;br&gt;&amp;gt;        return false;
&lt;br&gt;&amp;gt;        }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe the problem could be NOT NULL fileds in the db?
&lt;br&gt;&amp;gt; I know, would be better to include the update code in a try/catch statement,
&lt;br&gt;&amp;gt; but I want to hear your opinion on this weird behaviour.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26136108.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26136108.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Zend DB mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26144290.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26139117</id>
	<title>Re: How can I to print Json formated response?</title>
	<published>2009-10-30T18:41:05Z</published>
	<updated>2009-10-30T18:41:05Z</updated>
	<author>
		<name>Gray Fox</name>
	</author>
	<content type="html">That may not necessarily be the problem, but did you try specifying the response type (adding &amp;quot;json&amp;quot; as the 4th parameter in the $.post() call)?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;BEREGU wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hello,
&lt;br&gt;&lt;br&gt;I wanted to print json formatted response, which is passed from 
&lt;br&gt;controller passing to a view script.
&lt;br&gt;The response, which is catched with firebug is:
&lt;br&gt;&lt;br&gt;|{&amp;quot;ai80&amp;quot;:&amp;quot;1050&amp;quot;,&amp;quot;ai92&amp;quot;:&amp;quot;1100&amp;quot;,&amp;quot;diesel&amp;quot;:&amp;quot;1300&amp;quot;}|
&lt;br&gt;&lt;br&gt;&lt;br&gt;But I can't see any of those values on my browser. Please advice me what 
&lt;br&gt;I made wrong.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;In the controller:
&lt;br&gt;=============
&lt;br&gt;$fuels = new BEREGU_FuelsDbTable();
&lt;br&gt;$result = $fuels-&amp;gt;fetchAll();
&lt;br&gt;&lt;br&gt;foreach ($result as $fuel){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch ($fuel-&amp;gt;id) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case '2':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ai80 = $fuel-&amp;gt;price;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case '3':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ai92 = $fuel-&amp;gt;price;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case '6':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $diesel = $fuel-&amp;gt;price;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;$item = array();
&lt;br&gt;$item['ai80'] = $ai80;
&lt;br&gt;$item['ai92'] = $ai92;
&lt;br&gt;$item['diesel'] = $diesel;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;echo Zend_Json_Encoder::encode($item);
&lt;br&gt;///////////////////////////////
&lt;br&gt;&lt;br&gt;In the view script
&lt;br&gt;=============
&lt;br&gt;function getPriceJson(volume)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $.post(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;/async/getprice&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;volume&amp;quot; : &amp;nbsp; &amp;nbsp;volume
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function(response)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&amp;quot;#ai92&amp;quot;).append(&amp;quot;&lt;a href='#' target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&amp;quot;+response.diesel+&amp;quot;&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&amp;quot;#ai80&amp;quot;).append(response.ai80);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&amp;quot;#diesel&amp;quot;).append(response.diesel);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;//////////////////////////////////////
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Sincerely,
&lt;br&gt;Enkhbilguun Erdenetsogt
&lt;br&gt;&lt;br&gt;begin:vcard
&lt;br&gt;fn:Enkhbilguun Erdenetsogt
&lt;br&gt;n:Erdenetsogt;Enkhbilguun
&lt;br&gt;email;internet:enkhbilguun@beregu.com
&lt;br&gt;tel;cell:99113638
&lt;br&gt;x-mozilla-html:TRUE
&lt;br&gt;version:2.1
&lt;br&gt;end:vcard
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-can-I-to-print-Json-formated-response--tp26111958p26139117.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26138697</id>
	<title>Re: weird Zend_Db_Table_Abstract behaviour</title>
	<published>2009-10-30T17:27:07Z</published>
	<updated>2009-10-30T17:27:07Z</updated>
	<author>
		<name>tfk</name>
	</author>
	<content type="html">On Fri, Oct 30, 2009 at 9:00 PM, nulele &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26138697&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nulele@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; I don't know why, but when I call the method below and there's nothing to
&lt;br&gt;&amp;gt; update (datas are not changed) it returns false... I mean is this normal?
&lt;br&gt;&amp;gt; Even if datas are not changed I would expect a successful result of the
&lt;br&gt;&amp;gt; update operation... it simply would update nothing!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class Model_DbTable_Users extends Zend_Db_Table_Abstract
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt;        protected $_name = 'users';
&lt;br&gt;&amp;gt;        protected $_primary = 'id_user';
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        public function updateData($data, $id)
&lt;br&gt;&amp;gt;        {
&lt;br&gt;&amp;gt;                $id = (int)$id;
&lt;/div&gt;&lt;br&gt;Maybe $id is casted to 0 here, and nothing matches?
&lt;br&gt;&lt;br&gt;Till
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;        if($this-&amp;gt;update($data, &amp;quot;id_user = &amp;quot; . $id))
&lt;br&gt;&amp;gt;        {
&lt;br&gt;&amp;gt;                return true;
&lt;br&gt;&amp;gt;        }
&lt;br&gt;&amp;gt;        return false;
&lt;br&gt;&amp;gt;        }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maybe the problem could be NOT NULL fileds in the db?
&lt;br&gt;&amp;gt; I know, would be better to include the update code in a try/catch statement,
&lt;br&gt;&amp;gt; but I want to hear your opinion on this weird behaviour.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26136108.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26136108.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Zend DB mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26138697.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26136108</id>
	<title>weird Zend_Db_Table_Abstract behaviour</title>
	<published>2009-10-30T13:00:05Z</published>
	<updated>2009-10-30T13:00:05Z</updated>
	<author>
		<name>nulele</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I don't know why, but when I call the method below and there's nothing to update (datas are not changed) it returns false... I mean is this normal?
&lt;br&gt;Even if datas are not changed I would expect a successful result of the update operation... it simply would update nothing!!
&lt;br&gt;&lt;br&gt;class Model_DbTable_Users extends Zend_Db_Table_Abstract
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected $_name = 'users';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected $_primary = 'id_user';
&lt;br&gt;&lt;br&gt;....
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public function updateData($data, $id)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $id = (int)$id;		
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	if($this-&amp;gt;update($data, &amp;quot;id_user = &amp;quot; . $id))
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	{
&lt;br&gt;&amp;nbsp; &amp;nbsp; 		return true;	
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	}
&lt;br&gt;&amp;nbsp; &amp;nbsp; 	return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Maybe the problem could be NOT NULL fileds in the db?
&lt;br&gt;I know, would be better to include the update code in a try/catch statement, but I want to hear your opinion on this weird behaviour.
&lt;br&gt;&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/weird-Zend_Db_Table_Abstract-behaviour-tp26136108p26136108.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26111958</id>
	<title>How can I to print Json formated response?</title>
	<published>2009-10-29T05:19:45Z</published>
	<updated>2009-10-29T05:19:45Z</updated>
	<author>
		<name>BEREGU</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I wanted to print json formatted response, which is passed from 
&lt;br&gt;controller passing to a view script.
&lt;br&gt;The response, which is catched with firebug is:
&lt;br&gt;&lt;br&gt;|{&amp;quot;ai80&amp;quot;:&amp;quot;1050&amp;quot;,&amp;quot;ai92&amp;quot;:&amp;quot;1100&amp;quot;,&amp;quot;diesel&amp;quot;:&amp;quot;1300&amp;quot;}|
&lt;br&gt;&lt;br&gt;&lt;br&gt;But I can't see any of those values on my browser. Please advice me what 
&lt;br&gt;I made wrong.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;In the controller:
&lt;br&gt;=============
&lt;br&gt;$fuels = new BEREGU_FuelsDbTable();
&lt;br&gt;$result = $fuels-&amp;gt;fetchAll();
&lt;br&gt;&lt;br&gt;foreach ($result as $fuel){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch ($fuel-&amp;gt;id) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case '2':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ai80 = $fuel-&amp;gt;price;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case '3':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ai92 = $fuel-&amp;gt;price;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case '6':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $diesel = $fuel-&amp;gt;price;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;$item = array();
&lt;br&gt;$item['ai80'] = $ai80;
&lt;br&gt;$item['ai92'] = $ai92;
&lt;br&gt;$item['diesel'] = $diesel;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;echo Zend_Json_Encoder::encode($item);
&lt;br&gt;///////////////////////////////
&lt;br&gt;&lt;br&gt;In the view script
&lt;br&gt;=============
&lt;br&gt;function getPriceJson(volume)
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $.post(
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;/async/getprice&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;volume&amp;quot; : &amp;nbsp; &amp;nbsp;volume
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function(response)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&amp;quot;#ai92&amp;quot;).append(&amp;quot;&amp;lt;a href='#'&amp;gt;&amp;quot;+response.diesel+&amp;quot;&amp;lt;/a&amp;gt;&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&amp;quot;#ai80&amp;quot;).append(response.ai80);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&amp;quot;#diesel&amp;quot;).append(response.diesel);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;//////////////////////////////////////
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Sincerely,
&lt;br&gt;Enkhbilguun Erdenetsogt
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[enkhbilguun.vcf]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;begin:vcard
&lt;br&gt;fn:Enkhbilguun Erdenetsogt
&lt;br&gt;n:Erdenetsogt;Enkhbilguun
&lt;br&gt;email;internet:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26111958&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;enkhbilguun@...&lt;/a&gt;
&lt;br&gt;tel;cell:99113638
&lt;br&gt;x-mozilla-html:TRUE
&lt;br&gt;version:2.1
&lt;br&gt;end:vcard
&lt;br&gt;&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-can-I-to-print-Json-formated-response--tp26111958p26111958.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26110506</id>
	<title>Re: How to assign typical Zend Db Query Object into Array</title>
	<published>2009-10-29T03:24:26Z</published>
	<updated>2009-10-29T03:24:26Z</updated>
	<author>
		<name>Shaun Farrell</name>
	</author>
	<content type="html">You can just do Zend_Json::encode($array); to encode and to decode just do Zend_Json::decode($json)&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Oct 29, 2009 at 6:08 AM, Nick Pack &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26110506&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nick@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;Enkhbilguun Erdenetsogt wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hello,&lt;br&gt;
&lt;br&gt;
I&amp;#39;m learning Ajax with Zend Framework, and I just want to make my typical Zend Db Query Object (fetchAll()ed) to Json encoding ready array.&lt;br&gt;
&lt;br&gt;
Can someone help me?&lt;br&gt;
&lt;br&gt;
Thank you very much in advance.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Sincerely,&lt;br&gt;
&lt;br&gt;
Enkhbilguun Erdenetsogt&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
You can do (in your controller):&lt;br&gt;
&lt;br&gt;
$results = $table-&amp;gt;fetchAll()-&amp;gt;toArray();&lt;br&gt;
&lt;br&gt;
$this-&amp;gt;_helper-&amp;gt;json($results);&lt;br&gt;
&lt;br&gt;
Hope that helps&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Shaun J. Farrell&lt;br&gt;Washington, DC&lt;br&gt;(202) 713-5241&lt;br&gt;&lt;a href=&quot;http://www.farrelley.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.farrelley.com&lt;/a&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-assign-typical-Zend-Db-Query-Object--into-Array-tp26109954p26110506.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26110299</id>
	<title>Re: How to assign typical Zend Db Query Object  into Array</title>
	<published>2009-10-29T03:08:07Z</published>
	<updated>2009-10-29T03:08:07Z</updated>
	<author>
		<name>Nick Pack</name>
	</author>
	<content type="html">Enkhbilguun Erdenetsogt wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm learning Ajax with Zend Framework, and I just want to make my 
&lt;br&gt;&amp;gt; typical Zend Db Query Object (fetchAll()ed) to Json encoding ready array.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can someone help me?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you very much in advance.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sincerely,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Enkhbilguun Erdenetsogt
&lt;/div&gt;&lt;br&gt;You can do (in your controller):
&lt;br&gt;&lt;br&gt;$results = $table-&amp;gt;fetchAll()-&amp;gt;toArray();
&lt;br&gt;&lt;br&gt;$this-&amp;gt;_helper-&amp;gt;json($results);
&lt;br&gt;&lt;br&gt;Hope that helps
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-assign-typical-Zend-Db-Query-Object--into-Array-tp26109954p26110299.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26109954</id>
	<title>How to assign typical Zend Db Query Object  into Array</title>
	<published>2009-10-29T02:43:17Z</published>
	<updated>2009-10-29T02:43:17Z</updated>
	<author>
		<name>BEREGU</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I'm learning Ajax with Zend Framework, and I just want to make my 
&lt;br&gt;typical Zend Db Query Object (fetchAll()ed) to Json encoding ready array.
&lt;br&gt;&lt;br&gt;Can someone help me?
&lt;br&gt;&lt;br&gt;Thank you very much in advance.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sincerely,
&lt;br&gt;&lt;br&gt;Enkhbilguun Erdenetsogt
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[enkhbilguun.vcf]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;begin:vcard
&lt;br&gt;fn:Enkhbilguun Erdenetsogt
&lt;br&gt;n:Erdenetsogt;Enkhbilguun
&lt;br&gt;email;internet:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26109954&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;enkhbilguun@...&lt;/a&gt;
&lt;br&gt;tel;cell:99113638
&lt;br&gt;x-mozilla-html:TRUE
&lt;br&gt;version:2.1
&lt;br&gt;end:vcard
&lt;br&gt;&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-assign-typical-Zend-Db-Query-Object--into-Array-tp26109954p26109954.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26107673</id>
	<title>Re: Zend_Db_Table and mysql COUNT() function</title>
	<published>2009-10-28T23:59:10Z</published>
	<updated>2009-10-28T23:59:10Z</updated>
	<author>
		<name>umpirsky</name>
	</author>
	<content type="html">Why fetching all rows if you need just count? It&amp;#39;s far faster to select count (*).&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;Regards,&lt;br&gt;Saša Stamenković&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 28, 2009 at 11:15 PM, Ralph Schindler &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26107673&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralph.schindler@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
What rows do you want to count?&lt;br&gt;
&lt;br&gt;
If you get a rowset back, you can always call count:&lt;br&gt;
&lt;br&gt;
$rowset = $table-&amp;gt;fetchAll(&amp;#39;foo = &amp;quot;bar&amp;quot;&amp;#39;);&lt;br&gt;
&lt;br&gt;
echo count($rowset);&lt;br&gt;
// OR&lt;br&gt;
echo $rowset-&amp;gt;count();&lt;br&gt;
&lt;br&gt;
Does that help? I feel you might have a more specific question, but that basically is counting an existing rowset.&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;
-ralph&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
greg606 wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex&quot;&gt;
Hi&lt;br&gt;
I have a table (Zend_Db_table object) and I want to count rows.&lt;br&gt;
What is the simplest way to do it? ;)&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
Greg &lt;br&gt;
&lt;/blockquote&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend_Db_Table-and-mysql-COUNT%28%29-function-tp26093954p26107673.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26103132</id>
	<title>Re: Zend_Db_Table and mysql COUNT() function</title>
	<published>2009-10-28T15:15:00Z</published>
	<updated>2009-10-28T15:15:00Z</updated>
	<author>
		<name>Ralph Schindler-2</name>
	</author>
	<content type="html">What rows do you want to count?
&lt;br&gt;&lt;br&gt;If you get a rowset back, you can always call count:
&lt;br&gt;&lt;br&gt;$rowset = $table-&amp;gt;fetchAll('foo = &amp;quot;bar&amp;quot;');
&lt;br&gt;&lt;br&gt;echo count($rowset);
&lt;br&gt;// OR
&lt;br&gt;echo $rowset-&amp;gt;count();
&lt;br&gt;&lt;br&gt;Does that help? I feel you might have a more specific question, but that 
&lt;br&gt;basically is counting an existing rowset.
&lt;br&gt;&lt;br&gt;-ralph
&lt;br&gt;&lt;br&gt;&lt;br&gt;greg606 wrote:
&lt;br&gt;&amp;gt; Hi
&lt;br&gt;&amp;gt; I have a table (Zend_Db_table object) and I want to count rows.
&lt;br&gt;&amp;gt; What is the simplest way to do it? ;)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Greg 
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Zend_Db_Table-and-mysql-COUNT%28%29-function-tp26093954p26103132.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26101425</id>
	<title>Re: confirm unsubscribe from fw-db@lists.zend.com</title>
	<published>2009-10-28T13:14:25Z</published>
	<updated>2009-10-28T13:14:25Z</updated>
	<author>
		<name>Daniel Skinner</name>
	</author>
	<content type="html">On 28/10/2009 20:13, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-help@...&lt;/a&gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi! This is the ezmlm program. I'm managing the
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db@...&lt;/a&gt; mailing list.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm working for my owner, who can be reached
&lt;br&gt;&amp;gt; at &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-owner@...&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To confirm that you would like
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skinner@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; removed from the fw-db mailing list, please send an empty reply
&lt;br&gt;&amp;gt; to this address:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-uc.1256760802.nfekenbifhnnbggmecii-skinner=destiny-denied.co.uk@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Usually, this happens when you just hit the &amp;quot;reply&amp;quot; button.
&lt;br&gt;&amp;gt; If this does not work, simply copy the address and paste it into
&lt;br&gt;&amp;gt; the &amp;quot;To:&amp;quot; field of a new message.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I haven't checked whether your address is currently on the mailing list.
&lt;br&gt;&amp;gt; To see what address you used to subscribe, look at the messages you are
&lt;br&gt;&amp;gt; receiving from the mailing list. Each message has your address hidden
&lt;br&gt;&amp;gt; inside its return path; for example, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mary@...&lt;/a&gt; receives
&lt;br&gt;&amp;gt; messages with return path:
&lt;br&gt;&amp;gt; &amp;lt;fw-db-return-&amp;lt;number&amp;gt;-&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mary=example.com@...&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- Administrative commands for the fw-db list ---
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can handle administrative requests automatically. Please
&lt;br&gt;&amp;gt; do not send them to the list address! Instead, send
&lt;br&gt;&amp;gt; your message to the correct command address:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For help and a description of available commands, send a message to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-help@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To subscribe to the list, send a message to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-subscribe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To remove your address from the list, just send a message to
&lt;br&gt;&amp;gt; the address in the ``List-Unsubscribe'' header of any list
&lt;br&gt;&amp;gt; message. If you haven't changed addresses since subscribing,
&lt;br&gt;&amp;gt; you can also send a message to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-unsubscribe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; or for the digest to:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-digest-unsubscribe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For addition or removal of addresses, I'll send a confirmation
&lt;br&gt;&amp;gt; message to that address. When you receive it, simply reply to it
&lt;br&gt;&amp;gt; to complete the transaction.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you need to get in touch with the human owner of this list,
&lt;br&gt;&amp;gt; please send a message to:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-owner@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please include a FORWARDED list message with ALL HEADERS intact
&lt;br&gt;&amp;gt; to make it easier to help you.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- Enclosed is a copy of the request I received.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Return-Path:&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=12&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skinner@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Received: (qmail 26011 invoked from network); 28 Oct 2009 20:13:21 -0000
&lt;br&gt;&amp;gt; Received: from exprod7mx234.postini.com (HELO psmtp.com) (64.18.2.187)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;by lists.zend.com with SMTP; 28 Oct 2009 20:13:21 -0000
&lt;br&gt;&amp;gt; Received: from source ([209.20.77.253]) (using TLSv1) by exprod7mx234.postini.com ([64.18.6.14]) with SMTP;
&lt;br&gt;&amp;gt; 	Wed, 28 Oct 2009 13:13:21 PDT
&lt;br&gt;&amp;gt; Received: from [78.148.178.141] (helo=[172.16.0.12])
&lt;br&gt;&amp;gt; 	by pion.xeaura.co.uk with esmtpsa (TLSv1:AES256-SHA:256)
&lt;br&gt;&amp;gt; 	(Exim 4.69)
&lt;br&gt;&amp;gt; 	(envelope-from&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=13&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skinner@...&lt;/a&gt;&amp;gt;)
&lt;br&gt;&amp;gt; 	id 1N3EtU-0003qd-5b
&lt;br&gt;&amp;gt; 	for &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=14&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-unsubscribe@...&lt;/a&gt;; Wed, 28 Oct 2009 20:13:20 +0000
&lt;br&gt;&amp;gt; Message-ID:&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=15&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AE8A5E0.8050505@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Wed, 28 Oct 2009 20:13:20 +0000
&lt;br&gt;&amp;gt; From: Daniel Skinner&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=16&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skinner@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4
&lt;br&gt;&amp;gt; MIME-Version: 1.0
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=17&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-db-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; References:&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=18&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;772053.91755.qm@...&lt;/a&gt;&amp;gt;	&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=19&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;COL108-W38990CBB7EC48232AA331DB2B80@...&lt;/a&gt;&amp;gt; &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=20&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c4cabf100910281222y3ff78ec5i36b47aa31d85b7e7@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; In-Reply-To:&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101425&amp;i=21&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c4cabf100910281222y3ff78ec5i36b47aa31d85b7e7@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Content-Type: text/plain; charset=ISO-8859-1; format=flowed
&lt;br&gt;&amp;gt; Content-Transfer-Encoding: 7bit
&lt;br&gt;&amp;gt; X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
&lt;br&gt;&amp;gt; X-AntiAbuse: Primary Hostname - pion.xeaura.co.uk
&lt;br&gt;&amp;gt; X-AntiAbuse: Original Domain - lists.zend.com
&lt;br&gt;&amp;gt; X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
&lt;br&gt;&amp;gt; X-AntiAbuse: Sender Address Domain - destiny-denied.co.uk
&lt;br&gt;&amp;gt; X-pstn-2strike: clear
&lt;br&gt;&amp;gt; X-pstn-neptune: 0/0/0.00/0
&lt;br&gt;&amp;gt; X-pstn-levels: &amp;nbsp; &amp;nbsp; (S: 1.01124/99.88923 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;div class=&quot;signature&quot;&gt;&lt;a href=&quot;http://www.destiny-denied.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Daniel Skinner&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-confirm-unsubscribe-from-fw-db%40lists.zend.com-tp26101425p26101425.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26100619</id>
	<title>META=SER EL CORREO MAS ENVIADO EN MEXICO (Si te Interesa Reenvíalo)</title>
	<published>2009-10-28T12:22:58Z</published>
	<updated>2009-10-28T12:22:58Z</updated>
	<author>
		<name>Yanko Heinze</name>
	</author>
	<content type="html">&lt;div&gt;&lt;br&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;
&lt;blockquote style=&quot;border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;font face=&quot;Verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Verdana;&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;6&quot;&gt;&lt;span style=&quot;font-size: 22pt; font-family: Arial;&quot; lang=&quot;ES-MX&quot;&gt;Felicidades Querétaro!!! Por ser el primer Estado en lograr que la tenencia vehicular fuera derogada, -al menos hubo un gobernador a quien sí le importa su gente- debemos hacer una fuerza común para lograr que esto se haga efectivo en todos los estados de nuestro País, no es posible que aún en momentos de extrema crisis económica se sigan robando el dinero que tanto nos cuesta ganar, hagamos valer el poder del Pueblo. &lt;font color=&quot;red&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;(Reenvíalo a todos tus conocidos, no importa que ya lo hayas hecho antes)&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;font color=&quot;navy&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: navy; font-family: Arial;&quot; lang=&quot;ES-MX&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;div&gt;&lt;font face=&quot;Verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Verdana;&quot; lang=&quot;ES-MX&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;table style=&quot;margin-left: 21pt;&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 0cm;&quot; valign=&quot;top&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;b&gt;&lt;font color=&quot;red&quot; face=&quot;Bookman Old Style&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 18pt; color: red;&quot;&gt;A él ya se le olvido.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=&quot;red&quot; face=&quot;Bookman Old Style&quot;&gt;&lt;span style=&quot;font-weight: bold; color: red;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div style=&quot;margin-left: 3.75pt;&quot;&gt;
&lt;div&gt;
&lt;div&gt;&lt;b&gt;&lt;font color=&quot;red&quot; face=&quot;Bookman Old Style&quot; size=&quot;7&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 30pt; color: red;&quot;&gt;PERO&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=&quot;red&quot; face=&quot;Bookman Old Style&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 18pt; color: red;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=&quot;red&quot; face=&quot;Bookman Old Style&quot; size=&quot;7&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 30pt; color: red;&quot;&gt;A NOSOTROS NO&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=&quot;red&quot; face=&quot;Bookman Old Style&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 18pt; color: red;&quot;&gt;.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;font color=&quot;#1f497d&quot; face=&quot;Verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 11pt; color: rgb(31, 73, 125); font-family: Verdana;&quot;&gt;&lt;img alt=&quot;cid:image005.jpg@01C998FB.BBAB0390&quot; src=&quot;http://old.nabble.com/attachment/26100619/0/image001.jpg&quot; border=&quot;0&quot; height=&quot;573&quot; width=&quot;763&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;font face=&quot;Times New Roman&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 18pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;ESTA FOTO ES FIEL TESTIGO DE LO QUE SE PROMETE Y NO SE CUMPLE.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;font face=&quot;Times New Roman&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 16pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;QUE SEA EL CORREO MAS ENVIADO DE MÉXICO Y A VER SI ASÍ HACEMOS PRESIÓN PARA QUE SE CUMPLA.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 7.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;  &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;&lt;br&gt;
El presidente &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;7&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 30pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;Felipe Calderón&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt; en su campaña prometió eliminar este impuesto&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#262626&quot; face=&quot;Verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; color: rgb(38, 38, 38); font-family: Verdana;&quot;&gt;.&lt;br&gt;
E&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;mpecemos por primera vez a exigir y a unirnos como mexicanos, para poder lograrlo. &lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Verdana&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Verdana;&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 13.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;SI NO LO RE-ENVIAS NO TE QUEJES &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;span style=&quot;font-size: 7.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 13.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt;DEL GOBIERNO Y PAÍS EN EL QUE VIVES.&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;b&gt;&lt;font color=&quot;#0f243e&quot; face=&quot;Verdana&quot; size=&quot;4&quot;&gt;&lt;span style=&quot;font-weight: bold; font-size: 13.5pt; color: rgb(15, 36, 62); font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;br /&gt; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/META%3DSER-EL-CORREO-MAS-ENVIADO-EN-MEXICO-%28Si-te-Interesa-Reenv%C3%ADalo%29-tp26100619p26100619.html" />
</entry>

</feed>
