<?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: Multi-query function</title>
	<atom:link href="http://php4every1.com/tutorials/multi-query-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://php4every1.com/tutorials/multi-query-function/</link>
	<description>Blog with PHP, MySQL and other tutorials. You can also download my scripts, report a bug or leave a feedback.</description>
	<lastBuildDate>Wed, 08 Sep 2010 19:24:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: shaffy</title>
		<link>http://php4every1.com/tutorials/multi-query-function/comment-page-1/#comment-5568</link>
		<dc:creator>shaffy</dc:creator>
		<pubDate>Thu, 12 Aug 2010 05:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=71#comment-5568</guid>
		<description>Nice tutorial.</description>
		<content:encoded><![CDATA[<p>Nice tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marijan Šuflaj</title>
		<link>http://php4every1.com/tutorials/multi-query-function/comment-page-1/#comment-366</link>
		<dc:creator>Marijan Šuflaj</dc:creator>
		<pubDate>Wed, 02 Sep 2009 15:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=71#comment-366</guid>
		<description>Let&#039;s say you have this kind of code

&lt;pre&gt;$code = &#039;INESRT INTO `someTable` (`id`) VALUES (1); &#039;
. &#039;INESRT INTO `someTable` (`id`) VALUES (2); &#039;
. &#039;INESRT INTO `someTable` (`id`) VALUES (3); &#039;
. &#039;INESRT INTO `someTable` (`id`) VALUES (4); &#039;;&lt;/pre&gt;

If you&#039;d try to execute this code using mysql_query function you&#039;d get error.

If you pass this code to function like 
&lt;pre&gt;$result = multyQuery($code);&lt;/pre&gt;

$result would be an array with 4 rows and each row would contain one query so you could do this.

&lt;pre&gt;foreach ($result as $query)
    mysql_query($query);&lt;/pre&gt;

Then you would not get any errors :).</description>
		<content:encoded><![CDATA[<p>Let&#8217;s say you have this kind of code</p>
<pre>$code = 'INESRT INTO `someTable` (`id`) VALUES (1); '
. 'INESRT INTO `someTable` (`id`) VALUES (2); '
. 'INESRT INTO `someTable` (`id`) VALUES (3); '
. 'INESRT INTO `someTable` (`id`) VALUES (4); ';</pre>
<p>If you&#8217;d try to execute this code using mysql_query function you&#8217;d get error.</p>
<p>If you pass this code to function like </p>
<pre>$result = multyQuery($code);</pre>
<p>$result would be an array with 4 rows and each row would contain one query so you could do this.</p>
<pre>foreach ($result as $query)
    mysql_query($query);</pre>
<p>Then you would not get any errors <img src='http://php4every1.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sony</title>
		<link>http://php4every1.com/tutorials/multi-query-function/comment-page-1/#comment-364</link>
		<dc:creator>sony</dc:creator>
		<pubDate>Wed, 02 Sep 2009 09:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=71#comment-364</guid>
		<description>sory i new learn about this....., how can i test this function?? any example??

thx. :))</description>
		<content:encoded><![CDATA[<p>sory i new learn about this&#8230;.., how can i test this function?? any example??</p>
<p>thx. <img src='http://php4every1.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marijan Šuflaj</title>
		<link>http://php4every1.com/tutorials/multi-query-function/comment-page-1/#comment-271</link>
		<dc:creator>Marijan Šuflaj</dc:creator>
		<pubDate>Mon, 10 Aug 2009 19:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=71#comment-271</guid>
		<description>How do you mean others? Just have this one :).</description>
		<content:encoded><![CDATA[<p>How do you mean others? Just have this one <img src='http://php4every1.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://php4every1.com/tutorials/multi-query-function/comment-page-1/#comment-269</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Mon, 10 Aug 2009 14:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=71#comment-269</guid>
		<description>Nice tutorial.  Do you ahve a site with others?</description>
		<content:encoded><![CDATA[<p>Nice tutorial.  Do you ahve a site with others?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sina Salek</title>
		<link>http://php4every1.com/tutorials/multi-query-function/comment-page-1/#comment-96</link>
		<dc:creator>Sina Salek</dc:creator>
		<pubDate>Sat, 06 Jun 2009 07:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://php4every1.com/?p=71#comment-96</guid>
		<description>Hi,
Very nice function Marijan, i just tested it and it works find.
Thanks for sharing it.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Very nice function Marijan, i just tested it and it works find.<br />
Thanks for sharing it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
