<?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=1483&amp;type=atom" />
	<updated>2009-12-13T09:32:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=1483</id>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9987#p9987" />
			<content type="html"><![CDATA[<p><strong>falke5</strong><br />Это означает, что в массиве $myrow нет элемента login. Проверьте выше по коду как формируется $myrow.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-12-13T09:32:00Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9987#p9987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9984#p9984" />
			<content type="html"><![CDATA[<p>пишет вот такую ошибку теперь Notice: Undefined index: login in z:\home\localhost\www\sait\system\person.php on line 74<br />вот эта строка&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;Ваш логин:&nbsp; &nbsp; echo {$myrow[&quot;login&quot;]}&lt;/p&gt;</p>]]></content>
			<author>
				<name><![CDATA[falke5]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2380</uri>
			</author>
			<updated>2009-12-13T08:31:14Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9984#p9984</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9947#p9947" />
			<content type="html"><![CDATA[<p><strong>falke5</strong><br />По синтаксису правильно в HEREDOC писать элементы массива так:<br />{$myrow[&quot;login&quot;]}</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-12-10T23:22:15Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9947#p9947</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9942#p9942" />
			<content type="html"><![CDATA[<p>помоги плиз тут:<br />{&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />print &lt;&lt;&lt;HERE</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;table width=&quot;100%&quot; border=&quot;0&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>&lt;p&gt;Ваш логин:&nbsp; &nbsp; echo $myrow[&quot;login&quot;]&lt;/p&gt;</strong> тут ошибку находит<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/td&gt;&lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td&gt;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;&lt;div&nbsp; style=&quot;margin-bottom:10px; margin-left:20px&quot;&gt;Введите старый пароль&lt;/div&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;pas&quot; id=&quot;pas&quot; style=&quot;background-color: #f6f6ff;margin-left:40px&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;td&gt;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;&lt;div&nbsp; style=&quot;margin-bottom:10px; margin-left:20px&quot;&gt;Введите новый пароль&lt;/div&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;pas&quot; id=&quot;pas_n&quot; style=&quot;background-color: #f6f6ff;margin-left:40px&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt; &lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;&lt;div&nbsp; style=&quot;margin-bottom:10px; margin-left:20px&quot;&gt;Введите новый емейл&lt;/div&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input value=&quot; $myrow1[email]&quot; type=&quot;text&quot; name=&quot;email&quot;&nbsp; id=&quot;email&quot; style=&quot;background-color: #f6f6ff;margin-left:40px&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;td&gt;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;&lt;div&nbsp; style=&quot;margin-bottom:10px; margin-left:20px&quot;&gt;Введите новый wmid&lt;/div&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input value=&quot; $myrow1[wmid]&quot; type=&quot;text&quot; name=&quot;wmid&quot; id=&quot;wmid&quot; style=&quot;background-color: #f6f6ff;margin-left:40px&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;&lt;div&nbsp; style=&quot;margin-bottom:10px; margin-left:20px&quot;&gt;Введите ваше имя&lt;/div&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input&nbsp; value=&quot; $myrow1[name]&quot;type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot; style=&quot;background-color: #f6f6ff;margin-left:40px&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt; &lt;p align=&quot;right&quot; style=&quot;margin-top:40px;&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; id=&quot;submit&quot; value=&quot;Сохранить изменения&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &lt;/table&gt;</p><br /><br /><p>HERE;<br />}<br /> пришит ошибку Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in z:\home\localhost\www\sait\system\person.php on line 74</p>]]></content>
			<author>
				<name><![CDATA[falke5]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2380</uri>
			</author>
			<updated>2009-12-10T20:52:37Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9942#p9942</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9940#p9940" />
			<content type="html"><![CDATA[<p>спасибо!</p>]]></content>
			<author>
				<name><![CDATA[falke5]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2380</uri>
			</author>
			<updated>2009-12-10T18:56:37Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9940#p9940</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9931#p9931" />
			<content type="html"><![CDATA[<p><strong>falke5</strong><br />Не все переменные принимаются из $_POST массива (img, url).</p><p>Еще у вас созданы два textarea имеющие параметр name=&quot;text&quot;, чего быть не должно.</p><p>В данном случае проверку можно упростить:<br /></p><div class="codebox"><pre><code>&lt;?php

$aPost = array(&#039;title&#039;, &#039;text&#039;); // Все элементы формы.
foreach ($aPost as $key) {
    if (empty($_POST[$key]) {
        echo &#039;Все поля должны быть заполнены.&#039;;
    }
}

?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-12-09T15:33:27Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9931#p9931</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9930#p9930" />
			<content type="html"><![CDATA[<p>вот ещё одна проблемка я её уже 2 дня устранить не могу(<br />вот форма <br />&nbsp; &lt;form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;add_rek.php&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите название вашей рекламы&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;title&quot; id=&quot;title&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите краткое описание рекламы&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;textarea name=&quot;text&quot; id=&quot;description&quot; cols=&quot;50&quot; rows=&quot;8&quot;&gt;&lt;/textarea&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите текст рекламы&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;textarea name=&quot;text&quot; id=&quot;text&quot; cols=&quot;50&quot; rows=&quot;12&quot;&gt;&lt;/textarea&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите путь к картинке&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;img&quot; id=&quot;img&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите адрес Вашего сайта(для рекламы веб сайтов)&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;url&quot; id=&quot;url&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите Ваше имя&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;author&quot; id=&quot;author&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите Ваш емейл&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;email&quot; id=&quot;email&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите желаемый срок рекламирования(ознакомьтесь с &lt;a href=&quot;preis.php&quot;&gt;тарифами&lt;/a&gt;)&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;srok&quot; id=&quot;srok&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;Введите wmid с которого была произведена оплата&lt;br&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;text&quot; name=&quot;wmid&quot; id=&quot;wmid&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input type=&quot;submit&quot; name=&quot;submit&quot; id=&quot;submit&quot; value=&quot;Заказать рекламу&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/label&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp;&lt;/form&gt;<br />а вот мой обработчик:<br />сначала провожу проверку<br />&lt;? include (&quot;blocks/bd.php&quot;);<br />session_start();<br />if (isset ($_SESSION[&#039;login&#039;]))<br />{<br />$login = $_SESSION[&#039;login&#039;]; <br />$result = mysql_query(&quot;SELECT * FROM users WHERE login=&#039;$login&#039;&quot;,$db);<br />$myrow = mysql_fetch_array($result);<br />}<br />else<br />{<br />header(&quot;location: ../login.php&quot;);<br />exit;<br />}</p><br /><p>include (&quot;blocks/bd.php&quot;);<br />/* Если существует в глобальном массиве $_POST[&#039;title&#039;] опр. ячейка, то мы создаем простую переменную из неё. Если переменная пустая, то уничтожаем переменную.&nbsp; &nbsp;*/<br />if (isset($_POST[&#039;title&#039;]))&nbsp; &nbsp; &nbsp; {$title = $_POST[&#039;title&#039;]; if ($title == &#039;&#039;) {unset($title);}}<br />if (isset($_POST[&#039;description&#039;]))&nbsp; &nbsp; &nbsp; {$description = $_POST[&#039;description&#039;]; if ($description == &#039;&#039;) {unset($description);}}<br />if (isset($_POST[&#039;text&#039;]))&nbsp; &nbsp; &nbsp; &nbsp; {$text = $_POST[&#039;text&#039;]; if ($text == &#039;&#039;) {unset($text);}}<br />if (isset($_POST[&#039;author&#039;]))&nbsp; &nbsp; &nbsp; {$author = $_POST[&#039;author&#039;]; if ($author == &#039;&#039;) {unset($author);}}<br />if (isset($_POST[&#039;email&#039;]))&nbsp; &nbsp; &nbsp; {$email = $_POST[&#039;email&#039;]; if ($email == &#039;&#039;) {unset($email);}}<br />if (isset($_POST[&#039;wmid&#039;]))&nbsp; &nbsp; &nbsp; {$wmid = $_POST[&#039;wmid&#039;]; if ($wmid == &#039;&#039;) {unset($wmid);}}<br />if (isset($title))<br />{<br />$title = stripslashes($title);<br />$title = htmlspecialchars($title);<br />}<br />if (isset($description))<br />{<br />$description = stripslashes($description);<br />$description = htmlspecialchars($description);<br />}<br />if (isset($text))<br />{<br />$text = stripslashes($text);<br />$text = htmlspecialchars($text);<br />}<br />$img = stripslashes($img);<br />$img = htmlspecialchars($img);</p><p>$url = stripslashes($url);<br />$url = htmlspecialchars($url);</p><p>$srok = stripslashes($srok);<br />$srok = htmlspecialchars($srok);<br />if (isset($author))<br />{<br />$author = stripslashes($author);<br />$author = htmlspecialchars($author);<br />}<br />if (isset($email))<br />{<br />$email = stripslashes($email);<br />$email = htmlspecialchars($email);<br />}<br />if (isset($wmid))<br />{<br />$wmid = stripslashes($wmid);<br />$wmid = htmlspecialchars($wmid);<br />}<br />?&gt;<br />.<br />.<br />.<br />потом код проверки:<br />&lt;?php <br />if (isset($title) &amp;&amp; isset($description) &amp;&amp; isset($text) &amp;&amp; isset($img) &amp;&amp; isset($url) &amp;&amp; isset($srok) &amp;&amp; isset($author) &amp;&amp; isset($wmid)&amp;&amp; isset($email) )<br />{<br />/* Здесь пишем что можно заносить информацию в базу */<br />$result = mysql_query (&quot;INSERT INTO reklama_mod (title,description,text,img,url,srok,author,wmid,email) VALUES (&#039;$title&#039;, &#039;$description&#039;,&#039;$text&#039;,&#039;$img&#039;,&#039;$url&#039;,&#039;$srok&#039;,&#039;$author&#039;,&#039;$wmid&#039;,&#039;$email&#039;)&quot;);</p><p>if ($result == &#039;true&#039;) {echo &quot;&lt;p align=&#039;center&#039;&gt;Ваш заказ рекламы успешно отправлен.&lt;br&gt;После модерации реклама будет размещёна на сайте!&lt;/p&gt;&quot;;}<br />else {echo &quot;&lt;p&gt;Ваша реклама не отправлена на модерацию!&lt;/p&gt;&quot;;}</p><br /><p>}&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />else </p><p>{<br />echo &quot;&lt;p align=&#039;center&#039;&gt;Вы ввели не всю информацию, поэтому реклама в базу не может быть добавлена.&lt;/p&gt;&quot;;<br />}<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; ?&gt;<br />Мне выводит надпись что Вы ввели не всю информацию, поэтому реклама в базу не может быть добавлена.</p>]]></content>
			<author>
				<name><![CDATA[falke5]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2380</uri>
			</author>
			<updated>2009-12-09T14:37:02Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9930#p9930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9929#p9929" />
			<content type="html"><![CDATA[<p>модератор, огромное спасибо)</p>]]></content>
			<author>
				<name><![CDATA[falke5]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2380</uri>
			</author>
			<updated>2009-12-09T13:57:44Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9929#p9929</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9903#p9903" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>&lt;?php

if (mysql_num_rows($result4) &gt; 0) {
    $bRow = true;
    while ($myrow4 = mysql_fetch_array($result4)) {
        if ($bRow) print &#039;&lt;tr&gt;&#039;;
        print &#039;&lt;td&gt;&#039;;
         printf (&quot;&lt;p&gt;&lt;img src=&#039;%s&#039; height=&#039;100&#039; width=&#039;100&#039;&gt;&lt;br&gt;&lt;a class=&#039;rek_href&#039; href=&#039;view_rek.php?id=%s&#039;&gt;%s&lt;/a&gt;&lt;/p&gt;&quot;,$myrow4[&quot;img&quot;],$myrow4[&quot;id&quot;],$myrow4[&quot;title&quot;]);
        print &#039;&lt;/td&gt;&#039;;
        if (!$bRow) print &#039;&lt;/tr&gt;&#039;;
        $bRow = ($bRow) ? false : true;
    }
    if (!$bRow) print &#039;&lt;/td&gt;&lt;tr&gt;&#039;;
}

?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-12-06T23:18:08Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9903#p9903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Вопросы по сайту]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=9901#p9901" />
			<content type="html"><![CDATA[<p>Уважаемые пользователи и администрация, в связи с тем что я создаю новый сайт,&nbsp; у меня возникают некоторые вопросы, которые я буду вылаживать тут.<br />Заранее спасибо всем кто поможет=)</p><p><span style="color: #808080"><em>Сообщение добавлено Mon Dec&nbsp; 7 00:24:42 2009</em></span><br />Помогите плиз решить маленькую проблемку<br />Я хочу реализовать вывод в цикле информации которая будет заноситься в таблицу состоящую из 2-ух столбцов.<br />Смысл в том что бы произвёлся запрос в БД и посмотрело сколько у нас там есть статей если их 2 то создало таблицу из 2 столбцов и одного рядка если 4 то из 2 столбцов и 2 рядков и тд.<br />Помогите плиз!<br />Даю код:</p><p>do <br />{<br />&nbsp; &nbsp; &nbsp;printf (&quot;&lt;p&gt;&lt;img src=&#039;%s&#039; height=&#039;100&#039; width=&#039;100&#039;&gt;&lt;br&gt;&lt;a class=&#039;rek_href&#039; href=&#039;view_rek.php?id=%s&#039;&gt;%s&lt;/a&gt;&lt;/p&gt;&quot;,$myrow4[&quot;img&quot;],$myrow4[&quot;id&quot;],$myrow4[&quot;title&quot;]);<br />}</p><p> while ($myrow4 = mysql_fetch_array($result4));<br />}</p>]]></content>
			<author>
				<name><![CDATA[falke5]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=2380</uri>
			</author>
			<updated>2009-12-06T21:20:25Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=9901#p9901</id>
		</entry>
</feed>
