<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Zend_Db quoteInto() with multiple arguments</title>
	<atom:link href="http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/</link>
	<description>Ramblings about software development</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:38:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/comment-page-1/#comment-1302</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Fri, 30 Apr 2010 15:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=702#comment-1302</guid>
		<description>Nice! But I&#039;m quite sure that it wasn&#039;t working one year ago when the article was written :)</description>
		<content:encoded><![CDATA[<p>Nice! But I&#8217;m quite sure that it wasn&#8217;t working one year ago when the article was written <img src='http://blog.motane.lu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/comment-page-1/#comment-1301</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 30 Apr 2010 14:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=702#comment-1301</guid>
		<description>[code lang=&quot;php&quot;]
$where = &quot;(group_id = ? AND format_id = ? AND color_id = ?)&quot;;
$values = array($groupId, $formatId, $colorId);

foreach($values as $value) 
	$where = $this-&gt;_db-&gt;quoteInto($where, $value , &#039;&#039;, 1);
[/code]

tested and works!</description>
		<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
$where = &quot;(group_id = ? AND format_id = ? AND color_id = ?)&quot;;
$values = array($groupId, $formatId, $colorId);

foreach($values as $value)
	$where = $this-&gt;_db-&gt;quoteInto($where, $value , '', 1);
</pre>
<p>tested and works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/comment-page-1/#comment-657</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Thu, 24 Sep 2009 15:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=702#comment-657</guid>
		<description>Yes, it seems so. But a better idea would be this:

[code lang=&quot;php&quot;]
$values = array(&#039;value1&#039;, &#039;value2&#039;, 3, &#039;whatever&#039;);

$sql = &#039;INSERT INTO table (col1, col2, col3, col4) VALUES( ?, ?, ?, ?)&#039;;

foreach($values as $value) {
    $sql = $adapter-&gt;quoteInto($sql, $value);
}
[/code]

Not tested, but it should work!</description>
		<content:encoded><![CDATA[<p>Yes, it seems so. But a better idea would be this:</p>
<pre class="brush: php; title: ; notranslate">
$values = array('value1', 'value2', 3, 'whatever');

$sql = 'INSERT INTO table (col1, col2, col3, col4) VALUES( ?, ?, ?, ?)';

foreach($values as $value) {
    $sql = $adapter-&gt;quoteInto($sql, $value);
}
</pre>
<p>Not tested, but it should work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/comment-page-1/#comment-656</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 24 Sep 2009 14:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=702#comment-656</guid>
		<description>Looks like this is what he meant to link: http://codeaid.net/search/quoteinto</description>
		<content:encoded><![CDATA[<p>Looks like this is what he meant to link: <a href="http://codeaid.net/search/quoteinto" rel="nofollow">http://codeaid.net/search/quoteinto</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tudor</title>
		<link>http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/comment-page-1/#comment-627</link>
		<dc:creator>Tudor</dc:creator>
		<pubDate>Wed, 09 Sep 2009 04:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=702#comment-627</guid>
		<description>Your link doesn&#039;t work...</description>
		<content:encoded><![CDATA[<p>Your link doesn&#8217;t work&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andris</title>
		<link>http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/comment-page-1/#comment-626</link>
		<dc:creator>Andris</dc:creator>
		<pubDate>Tue, 08 Sep 2009 19:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.motane.lu/?p=702#comment-626</guid>
		<description>Check out my article about this issue:
http://codeaid.net/php/multiple-parameters-in-zend_db::quoteinto()</description>
		<content:encoded><![CDATA[<p>Check out my article about this issue:<br />
<a href="http://codeaid.net/php/multiple-parameters-in-zend_db::quoteinto" rel="nofollow">http://codeaid.net/php/multiple-parameters-in-zend_db::quoteinto</a>()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

