<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; ВЫБОРКА ИЗ НЕСКОЛЬКИХ ТАБЛИЦ]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=3292&amp;type=atom" />
	<updated>2014-05-02T14:18:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=3292</id>
		<entry>
			<title type="html"><![CDATA[Re: ВЫБОРКА ИЗ НЕСКОЛЬКИХ ТАБЛИЦ]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24701#p24701" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2014-05-02T14:18:12Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24701#p24701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ВЫБОРКА ИЗ НЕСКОЛЬКИХ ТАБЛИЦ]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24698#p24698" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[PHucker]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5906</uri>
			</author>
			<updated>2014-05-02T02:39:24Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24698#p24698</id>
		</entry>
</feed>
