<?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=3304&amp;type=atom" />
	<updated>2014-05-14T13:40:36Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=3304</id>
		<entry>
			<title type="html"><![CDATA[Re: Нужно вывести из базы поля и выбрать нужные с помощью чекбоксов]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24752#p24752" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2014-05-14T13:40:36Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24752#p24752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Нужно вывести из базы поля и выбрать нужные с помощью чекбоксов]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24749#p24749" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ruslanjonaka]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5953</uri>
			</author>
			<updated>2014-05-14T11:13:26Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24749#p24749</id>
		</entry>
</feed>
