<?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=3304</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=3304&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Нужно вывести из базы поля и выбрать нужные с помощью чекбоксов».]]></description>
		<lastBuildDate>Wed, 14 May 2014 13:40:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Нужно вывести из базы поля и выбрать нужные с помощью чекбоксов]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24752#p24752</link>
			<description><![CDATA[<p>Идентификаторы записей у вас будут передаваться выбором галочки. Если записей несколько, то имена записей должны быть в таком виде: name=&#039;ha[]&#039;<br />Смотрите документацию. <a href="http://www.php.net/manual/ru/language.variables.external.php">http://www.php.net/manual/ru/language.v … ternal.php</a></p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Wed, 14 May 2014 13:40:36 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24752#p24752</guid>
		</item>
		<item>
			<title><![CDATA[Нужно вывести из базы поля и выбрать нужные с помощью чекбоксов]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24749#p24749</link>
			<description><![CDATA[<p>Нужно вывести из базы нужные поля и выбрать нужные с помощью чекбоксов и занести в одно поле в другую таблицу. Помогите пожалуйста напишите код или проверьте пожалуйста мой а то уже 2 дня не могу найти решение. Дело в том что я пхп только начал. </p><p>Я хочу отправить сразу нового пациента сразу же прикрепить к нему нужный анализ который я вывел с помощью цикла.</p><p>&lt;form name=&quot;&quot; action=&quot;blogs/insert_patient_blog.php&quot; method=&quot;POST&quot; &gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;h1&gt;Добавление клиента&lt;/h1&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Фамилия: &lt;/br&gt; &lt;input type=&quot;text&quot; name=&quot;last&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Имя: &lt;/br&gt;&lt;input type=&quot;text&quot; name=&quot;first&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Отчество: &lt;/br&gt;&lt;input type=&quot;text&quot; name=&quot;pat&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Год.р.: &lt;/br&gt;&lt;input type=&quot;text&quot; name=&quot;birth&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;ID Доктора: &lt;/br&gt;&lt;input type=&quot;text&quot; name=&quot;doc_id&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Тел.: &lt;/br&gt;&lt;input type=&quot;text&quot; name=&quot;phone&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Коментарий: &lt;/br&gt;&lt;input type=&quot;text&quot; name=&quot;com&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Общая цена: &lt;input type=&quot;text&quot; name=&quot;&quot; value=&quot;&quot; style=&#039;width:200px&#039;&gt;&lt;/p&gt; </p><br /><p>//ЭТО УЖЕ ЗАПИСАННЫЕ ПОЛЯ В МОЕЙ БАЗЕ <br />&lt;?php<br />$res = mysql_query (&quot;SELECT id, russ, cat, a1, emp, price FROM addanalyse&quot;);<br />$myrow = mysql_fetch_array ($res);&nbsp; &nbsp;</p><p>do {<br />&nbsp; &nbsp; printf(&quot;&lt;input type=&#039;checkbox&#039; name=&#039;ha&#039; value=&#039;$myrow[id]&#039;&gt;<br />&nbsp; &nbsp;&lt;input name=&#039;&#039; type=&#039;text&#039; value=&#039;$myrow[russ]&#039;/&gt;<br />&nbsp; &nbsp;&lt;input name=&#039;&#039; type=&#039;text&#039; value=&#039;$myrow[cat]&#039;/&gt;<br />&nbsp; &nbsp;&lt;input name=&#039;&#039; type=&#039;text&#039; value=&#039;$myrow[a1]&#039;/&gt;<br />&nbsp; &nbsp;&lt;input name=&#039;&#039; type=&#039;text&#039; value=&#039;$myrow[emp]&#039;/&gt;<br />&nbsp; &nbsp;&lt;input name=&#039;&#039; type=&#039;text&#039; value=&#039;$myrow[price]&#039;/&gt;&lt;/br&gt;&lt;/br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; while ($myrow=mysql_fetch_array ($res));</p><p>&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;?&gt;<br />&lt;p&gt;&lt;input type=&quot;submit&quot; name=&quot;vremya&quot; value=&quot;Добавить пациента&quot; &gt;&lt;/p&gt;</p><br /><p>&lt;/form&gt;</p>]]></description>
			<author><![CDATA[null@example.com (ruslanjonaka)]]></author>
			<pubDate>Wed, 14 May 2014 11:13:26 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24749#p24749</guid>
		</item>
	</channel>
</rss>
