<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_10_thread_38608"  />
<title>rulinux.net - Форум - Talks - Зачем?</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - Talks - Зачем?</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re:Зачем?</title>
<link>https://rulinux.net/message.php?newsid=38608&amp;page=1#162265</link>
<guid>https://rulinux.net/message.php?newsid=38608&amp;page=1#162265</guid>
<pubDate>Fri, 28 Dec 2012 21:52:25 +0400</pubDate>
<description><![CDATA[<p>ИДИ НА ХУЙ</p>]]></description>
</item>
<item>
<title>Re:Зачем?</title>
<link>https://rulinux.net/message.php?newsid=38608&amp;page=1#162249</link>
<guid>https://rulinux.net/message.php?newsid=38608&amp;page=1#162249</guid>
<pubDate>Fri, 28 Dec 2012 18:25:32 +0400</pubDate>
<description><![CDATA[<p>А что это такое?</p>]]></description>
</item>
<item>
<title>Re:Зачем?</title>
<link>https://rulinux.net/message.php?newsid=38608&amp;page=1#162239</link>
<guid>https://rulinux.net/message.php?newsid=38608&amp;page=1#162239</guid>
<pubDate>Fri, 28 Dec 2012 16:34:08 +0400</pubDate>
<description><![CDATA[<p>Наверняка от старого кода осталось. Или копипаста, которую забыли поменять.<br><br>Тут вообще LIMIT 1 надо.</p>]]></description>
</item>
<item>
<title>Re:Зачем?</title>
<link>https://rulinux.net/message.php?newsid=38608&amp;page=1#162235</link>
<guid>https://rulinux.net/message.php?newsid=38608&amp;page=1#162235</guid>
<pubDate>Fri, 28 Dec 2012 15:41:59 +0400</pubDate>
<description><![CDATA[<p>Возможно раньше это делало что-то большее, а потом усохло))) Если есть, посмотри историю коммитов.</p>]]></description>
</item>
<item>
<title>Re:Зачем?</title>
<link>https://rulinux.net/message.php?newsid=38608&amp;page=1#162233</link>
<guid>https://rulinux.net/message.php?newsid=38608&amp;page=1#162233</guid>
<pubDate>Fri, 28 Dec 2012 14:27:24 +0400</pubDate>
<description><![CDATA[<p> Я правильно понял, что оно создает массив из результата запроса, а затем его возвращает ? <br><br>Тебя удивляет цикл или сам fetch ? </p>]]></description>
</item>
<item>
<title>Re:Зачем?</title>
<link>https://rulinux.net/message.php?newsid=38608&amp;page=1#162232</link>
<guid>https://rulinux.net/message.php?newsid=38608&amp;page=1#162232</guid>
<pubDate>Fri, 28 Dec 2012 14:26:12 +0400</pubDate>
<description><![CDATA[<p>Для избыточности, не иначе.</p>]]></description>
</item>
<item>
<title>Зачем?</title>
<link>https://rulinux.net/message.php?newsid=38608&amp;page=1#162231</link>
<guid>https://rulinux.net/message.php?newsid=38608&amp;page=1#162231</guid>
<pubDate>Fri, 28 Dec 2012 14:19:11 +0400</pubDate>
<description><![CDATA[<p>Кто нибудь может мне объяснить зачем это было сделано?</p><p></p><p><fieldset><legend>]</legend><code><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$r</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/pg_query_params"><span style="color: #990000;">pg_query_params</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">connection</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;SELECT state FROM files WHERE print_group_id = <span style="color: #006699; font-weight: bold;">$1</span>&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$print_group_id</span><span style="color: #009900;">&#41;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/pg_fetch_array"><span style="color: #990000;">pg_fetch_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$r</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//Зачем?</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tmpArr</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tmpArr</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp;</code></fieldset></p><p></p><p>У кого нибудь есть какие-нибудь идеи?</p>]]></description>
</item>
</channel>
</rss>