<?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=1790</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=1790&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Помогите решить проблему».]]></description>
		<lastBuildDate>Thu, 17 Jun 2010 16:45:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Помогите решить проблему]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=12423#p12423</link>
			<description><![CDATA[<p>&lt;table width=&quot;541&quot; height=&quot;406&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; background=&quot;img/wellcome.png&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;541&quot; height=&quot;51&quot;&gt; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td height=&quot;337&quot; align=&quot;center&quot; valign=&quot;middle&quot;&gt;&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;9%&quot; height=&quot;255&quot;&gt; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;49%&quot; valign=&quot;top&quot;&gt;&lt;p&gt;- &lt;strong&gt;Патч&lt;/strong&gt;: 3.3.2 &lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;em&gt;Сообщение Администратора &lt;/em&gt;:&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;<br />&lt;?&nbsp; </p><p>$db = mysql_connect(&quot;$ip&quot;, &quot;$dblogin&quot;, &quot;$dbpass&quot;);<br /><span style="color: red">if (!$db) {<br />&nbsp; &nbsp; die(&#039;Ошибка: &#039; . mysql_error());<br />}</span><br />mysql_select_db (&quot;$news_db&quot;);</p><p>$new = mysql_query(&quot;SELECT * FROM mess WHERE id = 1 &quot;);<br /><span style="color: red">if (!$new) {<br />&nbsp; &nbsp; die(&#039;Ошибка: &#039; . mysql_error());<br />}</span><br />$text = mysql_fetch_array($new);<br />$te = $text[&#039;text&#039;];<br />echo &quot;$te&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;42%&quot;&gt; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&lt;p align=&quot;left&quot;&gt;&lt;img src=&quot;img/news.png&quot; width=&quot;560&quot; height=&quot;31&quot;&gt; &lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&lt;p align=&quot;left&quot;&gt;&lt;?php&nbsp; </p><br /><p>$resultq = mysql_query (&quot;SELECT * FROM news ORDER BY id DESC LIMIT 10&quot;,$db);<br />$myrowq = mysql_fetch_array ($resultq); </p><p>do {<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />printf (&quot;&lt;table width=&#039;560&#039; border=&#039;0&#039; align=&#039;center&#039; cellpadding=&#039;0&#039; cellspacing=&#039;0&#039;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;img src=&#039;img/news_i/1.png&#039; width=&#039;560&#039; height=&#039;9&#039;&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td background=&#039;img/news_i/2.png&#039;&gt;&lt;table width=&#039;560&#039; border=&#039;0&#039; cellspacing=&#039;0&#039; cellpadding=&#039;0&#039;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&#039;10&#039;&gt; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&#039;531&#039; valign=&#039;top&#039;&gt;&lt;p&gt;&lt;img src=&#039;img/punct.png&#039; width=&#039;16&#039; height=&#039;16&#039;&gt; &lt;strong&gt;%s&lt;/strong&gt; [&lt;em&gt;%s&lt;/em&gt;] &lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;%s &lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;strong&gt;Автор&lt;/strong&gt;: %s &lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&#039;19&#039;&gt; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;img src=&#039;img/news_i/3.png&#039; width=&#039;560&#039; height=&#039;11&#039;&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;&quot;, $myrowq[&quot;name&quot;], $myrowq[&quot;date&quot;],$myrowq[&quot;text&quot;],$myrowq[&quot;author&quot;]); <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />}</p><p>while ($myrowq = mysql_fetch_array ($resultq));&nbsp; &nbsp; <br />?&gt; &lt;/p&gt;</p><br /><br /><p>Вот он выдаёт такие 3 ошибки: <br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in X:\home\127.0.0.1\www\include\page.php on line 18</p><p>Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in X:\home\127.0.0.1\www\include\page.php on line 35</p><p>Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in X:\home\127.0.0.1\www\include\page.php on line 61<br />Плиз помогите разобратся</p><p><span style="color: red">Попробуйте поймать вывод ошибки. Пометил в коде.</span></p>]]></description>
			<author><![CDATA[null@example.com (Jokerkenwood)]]></author>
			<pubDate>Thu, 17 Jun 2010 16:45:05 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=12423#p12423</guid>
		</item>
	</channel>
</rss>
