<?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=993&amp;type=atom" />
	<updated>2011-10-21T13:01:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=993</id>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17775#p17775" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Victor2008 сказал:</cite><blockquote><p>что должно быть вместо [&#039;test&#039;] параметра &#039;test&#039; и откуда его брать?</p></blockquote></div><p>Здесь я помочь не смогу, не имею понятия как именно вы собираетесь определять авторизован пользователь или нет.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-10-21T13:01:18Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17775#p17775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17774#p17774" />
			<content type="html"><![CDATA[<p>Доброго времени суток.</p><p>Спасибо, за корректировку кода, заработало!<br />Однако теперь столкнулся с такой ситуацией, в коде:<br />if (isset($_SESSION[&#039;test&#039;])) {<br />что должно быть вместо [&#039;test&#039;] параметра &#039;test&#039; и откуда его брать?<br />То есть так понимаю там должна подставляться переменная имя вошедшего пользователя? Сейчас пользователь входит через фиджет Liginza или фиджет Google, и когда вход на сайт происходит через созданный аккаунт где либо в сети, форма и кнопка продолжает быть неактивной.<br />Что нужно добавить?<br />И еще как учитывать нажатие только один раз, а потом опять деактивировать кнопку?<br />С благодарностью за ответ.</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2011-10-21T09:38:33Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17774#p17774</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17770#p17770" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Victor2008 сказал:</cite><blockquote><p>и все же формы нет. Может я что-то не так сделал?</p></blockquote></div><p>Посмотрите исходник страницы и обратите внимание на код выводимый функцией html_opros_form().</p><p>Вероятно ошибка здесь:<br /></p><div class="codebox"><pre><code>$text_out = &#039;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
&lt;!-- END Форма опроса  --&gt;&#039;;</code></pre></div><p>Вся функция вернет только эту строку и ничего больше, потому что переменной $text_out присваивается только она.</p><p>Так будет правильнее. Обратите внимание на точку перед знаком равно.<br /></p><div class="codebox"><pre><code>$text_out .= &#039;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
&lt;!-- END Форма опроса  --&gt;&#039;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-10-20T12:52:37Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17770#p17770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17765#p17765" />
			<content type="html"><![CDATA[<p>Доброго времени суток.</p><p>Понятно, но в php шаблоне функция вызывается так:<br />&lt;div&gt;&#039;.<br />html_opros_form().<br />&#039;&lt;/div&gt;&#039;;<br />и все же формы нет. Может я что-то не так сделал?</p><p>С благодарностью за ответ.</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2011-10-20T06:02:30Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17765#p17765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17756#p17756" />
			<content type="html"><![CDATA[<p>Осталось вернуть значение функции вызвав ее.<br /></p><div class="codebox"><pre><code>print html_opros_form();</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-10-19T16:13:38Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17756#p17756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17752#p17752" />
			<content type="html"><![CDATA[<p>Доброго времени суток.</p><p>Спасибо за отклик очень помогли.<br />Код:<br />session_start();<br />if (isset($_SESSION[&#039;test&#039;])) {<br />// Переменная сессии существует (тут код, который работает если посетитель вошел через Loginza из под своей учетной записи существующей где-либо в сети)<br />} esle {<br />// Переменной сессии нет (тут код, который не работает если посетитель просто открыл страницу сайта без захода через Loginza. С атрибутом disabled=&quot;disabled&quot;)<br />}<br />Весь верхний код вложен в:<br />function html_opros_form()<br />&nbsp; {<br />$text_out = &#039;<br />&lt;!-- Форма опроса&nbsp; --&gt;<br />&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;!-- width=&quot;228px&quot;--&gt;<br />&nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&#039;;<br />session_start(); и далее код сессии<br />$text_out = &#039;&lt;/td&gt;<br />&nbsp; &nbsp; &lt;/tr&gt;<br />&lt;/table&gt;<br />&lt;!-- END Форма опроса&nbsp; --&gt;&#039;;<br />&nbsp; return( $text_out );<br />&nbsp; }<br />ошибка пропала, но теперь нету в браузере ни опроса ни кнопки подтверждения выбора даже в неактивном режиме.<br />В какую сторону копать?</p><p>С благодарностью за ответ.</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2011-10-19T11:42:26Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17752#p17752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17746#p17746" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Victor2008 сказал:</cite><blockquote><p>} esle { &lt;- эта скобка!</p></blockquote></div><p>Исправьте ошибку на else.</p><p>Не пишите атрибут disabled вовсе, если не надо деактивировать кнопку. disabled=&quot;enabled&quot; - это сделает кнопку неактивной.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-10-19T07:11:47Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17746#p17746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17743#p17743" />
			<content type="html"><![CDATA[<p>Доброго времени суток.</p><p>Спасибо за отклик.<br />В итоге у меня получился такой код:<br />&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;!-- width=&quot;228px&quot;--&gt;<br />&nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; session_start();<br />if (isset($_SESSION[&#039;user&#039;])) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $text_out = &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;form action=&quot;&quot; method=&quot;POST&quot; class=&quot;sl&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;&#039;.$temp_array[&#039;id&#039;].&#039;&quot; class=&quot;form&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;act&quot; type=&quot;hidden&quot; value=&quot;add&quot; class=&quot;form&quot; disabled=&quot;enabled&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;cnt&quot; type=&quot;hidden&quot; value=&quot;opros2&quot; class=&quot;form&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&#039;.$temp_array[ &#039;zagol&#039;].&#039;&lt;/center&gt;&lt;br&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for( $i = 1; $i &lt;= 20; $i++ )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( $temp_array[ &quot;an&quot;.$i ] != &quot;&quot; )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text_out .= &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;an&quot; type=&quot;radio&quot; size=&quot;12&quot; value=&quot;&#039;.$i.&#039;&quot; class=&quot;form&quot; /&gt;&amp;nbsp;&#039;.$temp_array[ &quot;an&quot;.$i ].&#039;&lt;br&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text_out .= &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; value=&quot;Ответить&quot; class=&quot;form&quot;&nbsp; disabled=&quot;enabled&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&#039;.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anchor( &quot;opros3&quot;, 1, 1, 1, $temp_array[&#039;id&#039;], &quot;list&quot; ).&#039;Просмотр результатов тестирования.&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/center&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;&#039;;<br />} esle {<br />$text_out = &#039;<br />&lt;form action=&quot;&quot; method=&quot;POST&quot; class=&quot;sl&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;id&quot; type=&quot;hidden&quot; value=&quot;&#039;.$temp_array[&#039;id&#039;].&#039;&quot; class=&quot;form&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;act&quot; type=&quot;hidden&quot; value=&quot;add&quot; class=&quot;form&quot; disabled=&quot;disabled&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;cnt&quot; type=&quot;hidden&quot; value=&quot;opros2&quot; class=&quot;form&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&#039;.$temp_array[ &#039;zagol&#039;].&#039;&lt;/center&gt;&lt;br&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for( $i = 1; $i &lt;= 20; $i++ )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( $temp_array[ &quot;an&quot;.$i ] != &quot;&quot; )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text_out .= &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;an&quot; type=&quot;radio&quot; size=&quot;12&quot; value=&quot;&#039;.$i.&#039;&quot; class=&quot;form&quot; /&gt;&amp;nbsp;&#039;.$temp_array[ &quot;an&quot;.$i ].&#039;&lt;br&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $text_out .= &#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; value=&quot;Ответить&quot; class=&quot;form&quot; disabled=&quot;disabled&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&#039;.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; anchor( &quot;opros3&quot;, 1, 1, 1, $temp_array[&#039;id&#039;], &quot;list&quot; ).&#039;Просмотр результатов тестирования.&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/center&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp;$text_out = &#039; &lt;/td&gt;<br />&nbsp; &nbsp; &lt;/tr&gt;<br />&lt;/table&gt;<br />Однако браузер выдает ошибку:<br />} esle { &lt;- эта скобка!<br />$text_out = &#039;<br />Мне нужно чтобы без входа(регистрации через виджет Loginza) на сайт радио-кнопка голосования и кнопка подтверждения голоса были неоступны к нажатию, но видны, а после входа на сайт через регистрацию как пользователь радио-кнопка и кнопка подтверждения голоса были доступны. Возможно мной был не верно выбран метод через сессию? Регистрация происходит не на сервере где установлен сайт, а через существующую регистрационную запись где-либо в сети. Логизна отмечает/фиксирует вход на сайт.<br />С благодарностью за ответ.</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2011-10-18T18:20:17Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17743#p17743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17739#p17739" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Victor2008 сказал:</cite><blockquote><p>Как использовать сессию для активации/деактивации кнопки? Посредством  session_start()?</p></blockquote></div><p>Думаю надо проверять наличие переменной сессии.<br /></p><div class="codebox"><pre><code>session_start();
if (isset($_SESSION[&#039;test&#039;])) {
// Переменная сессии существует
} esle {
// Переменной сессии нет
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-10-18T11:21:36Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17739#p17739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17737#p17737" />
			<content type="html"><![CDATA[<p>Пример кода:<br />для вошедшего пользователя<br />&lt;input name=&quot;an&quot; type=&quot;radio&quot; size=&quot;12&quot; value=&quot;&#039;.$i.&#039;&quot; class=&quot;form&quot; /&gt;<br />&lt;input type=&quot;submit&quot; value=&quot;Ответить&quot; class=&quot;form&quot; /&gt;<br />Пример кода:<br />для невошедшего пользователя<br />&lt;input name=&quot;an&quot; type=&quot;radio&quot; size=&quot;12&quot; value=&quot;&#039;.$i.&#039;&quot; class=&quot;form&quot; disabled=&quot;disabled&quot; /&gt;<br />&lt;input type=&quot;submit&quot; value=&quot;Ответить&quot; class=&quot;form&quot; disabled=&quot;disabled&quot; /&gt;</p><p>P.S. При отправке сообщения невсегда появляется ячейка для ввода математического ответа для робота</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2011-10-18T11:01:12Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17737#p17737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17736#p17736" />
			<content type="html"><![CDATA[<p>Доброго времени суток. <br />Нужно чтобы средствами php без входа(вход через виджет Loginza) на сайте нельзя было нажать на кнопки:<br />disabled=&quot;disabled&quot; или disabled=&quot;enable&quot;<br />Как использовать сессию для активации/деактивации кнопки? Посредством&nbsp; session_start()?<br />session_start(){<br />//если вошли на сайт для одного нажатия disabled=&quot;enable&quot; или disabled=&quot;falshe&quot;<br />}<br />else{<br />// если на сайт не вошли то disabled=&quot;disabled&quot; или disabled=&quot;true&quot;<br />}<br />С благодарностью за ответ.</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2011-10-18T10:57:51Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17736#p17736</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=14471#p14471" />
			<content type="html"><![CDATA[<p>Если вы отправляете данные из формы методом POST, то name=&quot;sel_year&quot; будет не переменной $sel_year, а элементом глобального массива $_POST, то есть $_POST[&#039;sel_year&#039;].</p><p>Все поля и списки вложите в тег form.<br /></p><div class="codebox"><pre><code>&lt;form action=&quot;&quot; method=&quot;post&quot; id=&quot;main_form&quot;&gt;</code></pre></div><p>На списках добавьте обработку события onchange.<br /></p><div class="codebox"><pre><code>&lt;select name=&quot;rubriki&quot; required onchange=&quot;javascript:document.getElementById(&#039;main_form&#039;).submit();&quot;&gt;</code></pre></div><p>При формировании списков делайте так:<br /></p><div class="codebox"><pre><code>echo &#039;&lt;option value=&quot;&#039;.$i.&#039;&quot; &#039;.( ((isset($_POST[&#039;sel_year&#039;]) &amp;&amp; $_POST[&#039;sel_year&#039;] == $i) || (!isset($_POST[&#039;sel_year&#039;]) &amp;&amp; date( &quot;Y&quot; ) == $i) ) ? &quot;selected&quot; : &quot;&quot; ).&#039;&gt;&#039;.$i.&#039;&lt;/option&gt;&#039;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2010-12-27T13:31:18Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=14471#p14471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=14470#p14470" />
			<content type="html"><![CDATA[<p>Доброго времени суток.</p><p>У меня просьба о помощи.<br />Есть база, со статьями, авторами, рубриками, годами. Для каждого данного есть поле с именем типа counter_rubr и в этом поле масса значений/записей прим. enum(&#039;others&#039;, &#039;tema&#039;, &#039;anons&#039;,&#039;glavnoe&#039;). Нужно сделать для посетителей список выборку по месяцам, годам, рубрикам, и чтоб список был без кнопки &quot;просмотр&quot;, а как только выбираешь пункт из списка, автоматически на экране монитора отображались статьи отсортированные согласно выбранным значениям из предложенных в списках.</p><p>Часть кода:<br />&nbsp; &nbsp; &nbsp;&lt;table&gt;&lt;tr&gt;<br />&nbsp; &nbsp; &nbsp;&lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;!--&amp;nbsp;Рубрики:--&gt;<br />&nbsp; &nbsp; &nbsp; &lt;select name=&quot;rubriki&quot; required&gt;<br />&nbsp; &nbsp; &nbsp; &lt;option value=&quot;&quot; selected&gt;&lt;/option&gt;<br />&nbsp; &nbsp; &nbsp; &lt;option value=&quot;others&quot;&gt;Другие&lt;/option&gt;<br />&nbsp; &nbsp; &nbsp; &lt;option value=&quot;tema&quot;&gt;Тема&lt;/option&gt;<br />&nbsp; &nbsp; &nbsp; &lt;option value=&quot;anons&quot;&gt;анонс&lt;/option&gt;<br />&nbsp; &nbsp; &nbsp;&lt;option value=&quot;glavnoe&quot;&gt;Главное&lt;/option&gt;<br />&nbsp; &nbsp; &lt;/select&gt;&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</p><p>Понимаю что name=&quot;rubriki&quot; будет выглядеть как $rubriki, Параметр месяц и год, берутся таким образом:<br />&lt;table&gt;&lt;tr&gt;&lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &lt;!--&amp;nbsp;Год:--&gt;<br />&nbsp; &nbsp; &nbsp; &lt;select name=&quot;sel_year&quot; required&gt;<br />&nbsp; &nbsp; &nbsp; &lt;option value=&quot;&quot; selected&gt;&lt;/option&gt;<br />&nbsp; &nbsp; &nbsp; &lt;?php&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; for ( $i = 2002; $i &lt;= $year; $i++ )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo &#039;&lt;option value=&quot;&#039;.$i.&#039;&quot; &#039;.( ( date( &quot;Y&quot; ) == $i ) ? &quot;selected&quot; : &quot;&quot; ).&#039;&gt;&#039;.$i.&#039;&lt;/option&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; ?&gt;<br />&nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp;&lt;!--&amp;nbsp;Месяц:--&gt;<br />&nbsp; &nbsp; &nbsp;&lt;select name=&quot;sel_month&quot; required&gt;<br />&nbsp; &nbsp; &nbsp;&lt;option value=&quot;&quot; selected &gt;&lt;/option&gt;<br />&nbsp; &nbsp; &nbsp;&lt;?php<br />&nbsp; &nbsp; &nbsp;for ( $i = 0; $i &lt;= 11; $i++ )<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&lt;option value=&quot;&#039;.$i.&#039;&quot; &#039;.( ( sprintf( &quot;%d&quot;, date( &quot;m&quot; )-1 ) == $i ) ? &quot;selected&quot; : &quot;&quot; ).&#039;&gt;&#039;.$string_mnt[ $i ].&#039;&lt;/option&gt;&#039;;<br />&nbsp; &nbsp; &nbsp;?&gt;<br />&nbsp; &nbsp; &nbsp;&lt;/select&gt;<br />&nbsp; &nbsp; &nbsp; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<br />Год будет выглядеть как name=&quot;sel_year&quot; т.е. $sel_year, и name=&quot;sel_month&quot; как $sel_month.</p><p>Однако как делать запрос на выборку из базы без кнопки &quot;просмотр&quot;, так чтоб как только выбираешь из списка статьи автоматически появлялись в окне браузера и при этом не пропадали выпадающие списки?</p><p>Заранее благодарен за ответ.</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2010-12-27T13:07:29Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=14470#p14470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=14469#p14469" />
			<content type="html"><![CDATA[<p>Доброго времени суток.</p><p>Ситуацию решил. Оказалось что невсе знаки в часности &quot;--&quot; копируясь вместе с кодом вставляются благополучно, после вставления знаки, которые в кавычках меняются на другие и это к сожалению не срезу бросается в глаза. В моем случае пришлось вручную редактировать/заменять знак. На данный момент все работает.</p><p>Спасибо за помощ.</p>]]></content>
			<author>
				<name><![CDATA[Victor2008]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1285</uri>
			</author>
			<updated>2010-12-27T12:37:13Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=14469#p14469</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как увеличить количество строк/знаков?]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=13216#p13216" />
			<content type="html"><![CDATA[<p><strong>Victor2008</strong><br />Покажите пример того как отображаются символы и как должны. Что такое &quot;тирехи&quot; - я не понял.</p><p>Если есть возможность, то посмотрите как в БД хранятся символы, тогда можно будет понять подвергаются они преобразованию или нет.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2010-08-27T20:10:17Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=13216#p13216</id>
		</entry>
</feed>
