<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=3226&amp;type=atom" />
	<updated>2014-02-26T05:38:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=3226</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24431#p24431" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2014-02-26T05:38:30Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24431#p24431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24430#p24430" />
			<content type="html"><![CDATA[<p>Спасибо большое!<br />Пишет правда Никакая база данных не выбрана.<br />И http://localhost/Tools/phpmyadmin/ не находит кстати мои бывшие базы.<br />А как сделать так, чтобы он их нашел? Вообще с диска W я из не убирала..странно.</p><p>Или хотя бы как импортировать туда свою базу, если у меня есть файл www?<br />Может знает кто-нибудь..</p>]]></content>
			<author>
				<name><![CDATA[anyutka6699]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5844</uri>
			</author>
			<updated>2014-02-25T19:06:28Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24430#p24430</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24417#p24417" />
			<content type="html"><![CDATA[<p>Рекомендую воспользоваться функциями из этой <a href="http://webew.ru/articles/3237.webew">статьи</a>.</p>]]></content>
			<author>
				<name><![CDATA[vasya]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5711</uri>
			</author>
			<updated>2014-02-23T09:17:53Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24417#p24417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24416#p24416" />
			<content type="html"><![CDATA[<p>Смотрите вывод ошибок.<br /></p><div class="codebox"><pre><code>if (!$myrow = mysql_fetch_array ($result)) {
  print mysql_error();
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2014-02-22T16:18:22Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24416#p24416</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите с ошибкой: expects parameter 1 to be resource, boolean given]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=24414#p24414" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anyutka6699]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5844</uri>
			</author>
			<updated>2014-02-21T17:53:52Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=24414#p24414</id>
		</entry>
</feed>
