<?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; Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
		<link>https://forum.php-myadmin.ru/viewtopic.php?id=3226</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=3226&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Помогите с ошибкой: expects parameter 1 to be resource, boolean given».]]></description>
		<lastBuildDate>Wed, 26 Feb 2014 05:38:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24431#p24431</link>
			<description><![CDATA[<div class="quotebox"><cite>anyutka6699 сказал:</cite><blockquote><p>И http://localhost/Tools/phpmyadmin/ не находит кстати мои бывшие базы.</p></blockquote></div><p>Вероятно причина в этом. Если баз данных нет, то скрипт и работать не будет.</p><div class="quotebox"><cite>anyutka6699 сказал:</cite><blockquote><p>Или хотя бы как импортировать туда свою базу, если у меня есть файл www?</p></blockquote></div><p>Чтобы импортировать данные в БД необходим файл .sql, в котором они и должны находиться. Думаю в каталоге www у вас файлы скрипта, а где находится дамп базы данных вам надо разобраться.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Wed, 26 Feb 2014 05:38:30 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24431#p24431</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24430#p24430</link>
			<description><![CDATA[<p>Спасибо большое!<br />Пишет правда Никакая база данных не выбрана.<br />И http://localhost/Tools/phpmyadmin/ не находит кстати мои бывшие базы.<br />А как сделать так, чтобы он их нашел? Вообще с диска W я из не убирала..странно.</p><p>Или хотя бы как импортировать туда свою базу, если у меня есть файл www?<br />Может знает кто-нибудь..</p>]]></description>
			<author><![CDATA[null@example.com (anyutka6699)]]></author>
			<pubDate>Tue, 25 Feb 2014 19:06:28 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24430#p24430</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24417#p24417</link>
			<description><![CDATA[<p>Рекомендую воспользоваться функциями из этой <a href="http://webew.ru/articles/3237.webew">статьи</a>.</p>]]></description>
			<author><![CDATA[null@example.com (vasya)]]></author>
			<pubDate>Sun, 23 Feb 2014 09:17:53 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24417#p24417</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24416#p24416</link>
			<description><![CDATA[<p>Смотрите вывод ошибок.<br /></p><div class="codebox"><pre><code>if (!$myrow = mysql_fetch_array ($result)) {
  print mysql_error();
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Sat, 22 Feb 2014 16:18:22 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24416#p24416</guid>
		</item>
		<item>
			<title><![CDATA[Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=24414#p24414</link>
			<description><![CDATA[<p>Добрый день!<br />Подключилась к базе, к которой не подходила 2 года. А она выдает ошибки. С виду все нормально...<br />Подскажите, пожалуйста, как это исправить?</p><p>Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in W:\home\an4ydka.ru\www\zapravki.php on line 31<br />Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in W:\home\an4ydka.ru\www\zapravki.php on line 36<br />Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in W:\home\an4ydka.ru\www\zapravki.php on line </p><p>Вот программа: (Те строки, где ошибка выделены------------&lt;)</p><p>&lt;?php <br />include (&quot;blocks/bd.php&quot;);<br />?&gt;</p><br /><p>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>&quot;&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta name=&quot;description&quot; content=&quot;&quot;&gt;<br />&lt;meta name=&quot;keywords&quot; content=&quot;&quot;&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1251&quot;&gt;</p><br /><p>&lt;title&gt;Филиалы АЗС&lt;/title&gt;<br />&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;<br />&lt;/head&gt;<br />&lt;body&gt;</p><p>&lt;table width=&quot;690&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bgcolor=&quot;#FFFFFF&quot; class=&quot;main_border&quot;&gt;<br />&lt;?php include(&quot;blocks/header.php&quot;);?&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php include(&quot;blocks/lefttd.php&quot;);?&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php&nbsp; </p><p>$result = mysql_query (&quot;SELECT id, name_azs, adress, id_post&nbsp; FROM azs_filials&quot;,$db);<br />$myrow = mysql_fetch_array ($result); ---------------------------------------------------------------------------&lt;</p><br /><p>do {<br />$result2 = mysql_query (&quot;SELECT id, name_post FROM azs_postavshiki WHERE id = $myrow[id_post]&quot;,$db);<br />$myrow2 = mysql_fetch_array ($result2);&nbsp; ----------------------------------------------------------------------&lt;<br />//print ($myrow[id_post]);</p><p>&nbsp; &nbsp; &nbsp; <br />printf (&quot;&lt;table align=&#039;center&#039; class=&#039;myazs&#039;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;td class=&#039;myazs_title&#039;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;p class=&#039;myazs_adds&#039;&gt;Филиал: %s<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;a title=&#039;Изменить&#039; href=&#039;zapravka_edit.php?id=$myrow[id]&#039;&gt;&lt;img src=&#039;img/edit.png&#039; align=&#039;absmiddle&#039; width=&#039;22&#039; height=&#039;22&#039; alt=&#039;изменить&#039;&gt;&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;a title=&#039;Удалить&#039; href=&#039;zapravka_del.php?id=$myrow[id]&#039; onclick=&#039;return confirmDelete();&#039;&gt;&lt;img src=&#039;img/delete.png&#039; align=&#039;absmiddle&#039; width=&#039;22&#039; height=&#039;22&#039; alt=&#039;удалить&#039;&gt;&lt;/a&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;/td&gt;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &lt;td&gt;&lt;p&gt;Адрес: %s&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &lt;td&gt;&lt;p&gt;Поставщик: %s&lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &lt;td&gt;&lt;p&gt;&lt;a title=&#039;Посмотреть Сотрудников АЗС&#039; href=&#039;sotrf.php?id_fil=$myrow[id]&#039; class=&#039;otherlink&#039;&gt;Сотрудники филиала &lt;img src=&#039;img/stock_people.png&#039; align=&#039;absmiddle&#039; width=&#039;22&#039; height=&#039;22&#039;&gt;&lt;/a&gt; &lt;/p&gt;&lt;/td&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/tr&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;br&gt;&lt;br&gt;&quot;, $myrow[&quot;name_azs&quot;],$myrow[&quot;adres&quot;],$myrow2[&quot;name_post&quot;]); <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />}</p><p>while ($myrow = mysql_fetch_array ($result));------------------------------------------------------------------------------&lt;<br />&nbsp; &nbsp; <br />?&gt;&nbsp; &nbsp;&nbsp; &nbsp;<br />&nbsp; &lt;/table&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&lt;/br&gt;&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/br&gt;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&lt;?php include(&quot;blocks/footer.php&quot;);?&gt;</p><br /><p>&lt;/table&gt;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &lt;!-- функция для защиты от случайного удаления --&gt;<br /> &nbsp; &nbsp; &lt;script type=&quot;text/javascript&quot;&gt; <br />&nbsp; &nbsp; &nbsp; &nbsp; function confirmDelete() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (confirm(&quot;Вы подтверждаете удаление?&quot;)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &lt;/script&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</p>]]></description>
			<author><![CDATA[null@example.com (anyutka6699)]]></author>
			<pubDate>Fri, 21 Feb 2014 17:53:52 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=24414#p24414</guid>
		</item>
	</channel>
</rss>
