<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум PHP-MyAdmin.RU &mdash; ВЫБОРКА ИЗ НЕСКОЛЬКИХ ТАБЛИЦ]]></title>
		<link>https://forum.php-myadmin.ru/viewtopic.php?id=3292</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=3292&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «ВЫБОРКА ИЗ НЕСКОЛЬКИХ ТАБЛИЦ».]]></description>
		<lastBuildDate>Fri, 02 May 2014 14:18:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: ВЫБОРКА ИЗ НЕСКОЛЬКИХ ТАБЛИЦ]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24701#p24701</link>
			<description><![CDATA[<p>Смотрите пример объединения таблиц в документации:<br /><a href="https://dev.mysql.com/doc/refman/5.0/en/select.html">https://dev.mysql.com/doc/refman/5.0/en/select.html</a><br /></p><div class="codebox"><pre><code>SELECT t1.name, t2.salary FROM employee AS t1, info AS t2
  WHERE t1.name = t2.name;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Fri, 02 May 2014 14:18:12 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24701#p24701</guid>
		</item>
		<item>
			<title><![CDATA[ВЫБОРКА ИЗ НЕСКОЛЬКИХ ТАБЛИЦ]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24698#p24698</link>
			<description><![CDATA[<p>Здравствуйте! У меня такой вопрос: как надо выбрать из двух таблиц одновременно? <br />У меня код такой:<br />&nbsp; &nbsp; <br />&lt;?php<br />&nbsp; $connect = mysql_connect(&quot;IP adress&quot;, &quot;report_user&quot;, &quot;*****&quot;);<br />&nbsp; $selectdb = mysql_select_db(&quot;******&quot;, $connect);</p><p>&nbsp; $result = mysql_query((&quot;SELECT ID FROM amr_fields&quot;)</p><p>&nbsp; UNION ALL&nbsp; //вот здесь выскакивает ошибка.&nbsp; </p><p>&nbsp; &nbsp;(&quot;SELECT FieldName FROM amr_read_history&quot;)$connect);<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; while ($data = mysql_fetch_row($result))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo&quot;&lt;tr&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo&quot;&lt;td&gt;{$data[0]}&lt;/td&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo&quot;&lt;td&gt;{$data[1]}&lt;/td&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo&quot;&lt;/tr&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; <br />&nbsp; &nbsp;?&gt;<br />Я новичок. Прошу помогите.</p>]]></description>
			<author><![CDATA[null@example.com (PHucker)]]></author>
			<pubDate>Fri, 02 May 2014 02:39:24 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24698#p24698</guid>
		</item>
	</channel>
</rss>
