<?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=2939</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=2939&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «вывод из базы».]]></description>
		<lastBuildDate>Tue, 28 May 2013 13:41:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: вывод из базы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=23126#p23126</link>
			<description><![CDATA[<p>Сделайте запрос на выборку всех строк по идентификатору, как я понял, в вашем случае будет FormId. Создайте массив.<br /></p><div class="codebox"><pre><code>while ($row = mysql_fetch_assoc($result)) {
  $a[$row[&#039;FieldName&#039;]] = $row[&#039;FieldValue&#039;];
}
print_r($a);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 28 May 2013 13:41:10 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=23126#p23126</guid>
		</item>
		<item>
			<title><![CDATA[Re: вывод из базы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=23125#p23125</link>
			<description><![CDATA[<p>да нет, мне нужно вывести, допустим Иванов Иван&nbsp; 89 лет email: asdasd@asdasd.asd b номер телефона, каким образом? не могу же я в трех местах указывать&nbsp; $tmyrow[&#039; FieldValue&#039;], ведь значение одинаковое выводится</p>]]></description>
			<author><![CDATA[null@example.com (smoln)]]></author>
			<pubDate>Tue, 28 May 2013 12:11:25 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=23125#p23125</guid>
		</item>
		<item>
			<title><![CDATA[Re: вывод из базы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=23123#p23123</link>
			<description><![CDATA[<p>Так и выводить $tmyrow[&#039;FieldName&#039;] и $tmyrow[&#039;FieldValue&#039;]. Не смог понять в чем сложности.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Tue, 28 May 2013 10:45:12 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=23123#p23123</guid>
		</item>
		<item>
			<title><![CDATA[вывод из базы]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=23121#p23121</link>
			<description><![CDATA[<p>есть табличка такого вида </p><p>Submission <br />ValueId&nbsp; &nbsp; &nbsp;FormId&nbsp; &nbsp;SubmissionId&nbsp; &nbsp; &nbsp; &nbsp; FieldName&nbsp; &nbsp; &nbsp; &nbsp;FieldValue<br />&nbsp; &nbsp;1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fio&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Иванов Иван<br />&nbsp; &nbsp;2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;phone&nbsp; &nbsp; &nbsp; &nbsp; +79888888888<br />&nbsp; &nbsp;3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;age&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;89<br />&nbsp; &nbsp;4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; email&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;asdasd@asdasd.asd<br />или я тцплю с утра или просто первый раз столкнулся с подобноым вопросом - как вывести правильно<br />что FieldName соответствовало FieldValue<br />я вывожу обычным способом<br />while ($tmyrow = mysql_fetch_array($tresult,MYSQL_BOTH)), то есть как из&nbsp; $tmyrow[&#039;FieldName&#039;] со значением fio выводилась переменная $tmyrow[&#039;FieldValue&#039;]&nbsp; со значением Иванов Иван и тд..<br />спасибо заранее, туплю че то</p>]]></description>
			<author><![CDATA[null@example.com (smoln)]]></author>
			<pubDate>Tue, 28 May 2013 08:02:29 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=23121#p23121</guid>
		</item>
	</channel>
</rss>
