<?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=2935&amp;type=atom" />
	<updated>2013-05-27T05:41:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=2935</id>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23116#p23116" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>Во всех остальных случаях (case) так же пропишите переменную $query с запросом на выборку данных из нужной таблицы.</p></blockquote></div><p> спасибо тебе большое!!!выручил прямо!!!еще раз спасибо! <img src="https://forum.php-myadmin.ru/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; <img src="https://forum.php-myadmin.ru/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; <img src="https://forum.php-myadmin.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Сафарик]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5233</uri>
			</author>
			<updated>2013-05-27T05:41:01Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23116#p23116</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23103#p23103" />
			<content type="html"><![CDATA[<p>Во всех остальных случаях (case) так же пропишите переменную $query с запросом на выборку данных из нужной таблицы.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2013-05-26T14:15:07Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23103#p23103</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23097#p23097" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>Уберите помеченную строку.<br />/* Выполняем SQL-запрос */<br /><span style="color: red">$query = &quot;SELECT * FROM doktors&quot;;</span><br />$result = mysql_query($query) or die(&quot;Query failed: &quot;.mysql_error());</p></blockquote></div><p> Спасибо тебе добрый человек!!!все сделал,все работает,но одна загвоздка,на остальных страницах вылазит ошибка Query failed: Query was empty это что такое?объясните пожалуйста))</p>]]></content>
			<author>
				<name><![CDATA[Сафарик]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5233</uri>
			</author>
			<updated>2013-05-26T07:07:16Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23097#p23097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23095#p23095" />
			<content type="html"><![CDATA[<p>Уберите помеченную строку.<br />/* Выполняем SQL-запрос */<br /><span style="color: red">$query = &quot;SELECT * FROM doktors&quot;;</span><br />$result = mysql_query($query) or die(&quot;Query failed: &quot;.mysql_error());</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2013-05-26T05:24:57Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23095#p23095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23092#p23092" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>Получается примерно так:<br /></p><div class="codebox"><pre><code>case &quot;specialists&quot;:
  echo &quot;Специалисты&quot;;
  $query = &quot;SELECT * FROM `doktors`&quot;;
  break;
case &quot;photo&quot;:
  echo &quot;Фотоотчёт&quot;;
  $query = &quot;SELECT * FROM `photo`&quot;;
  break;</code></pre></div></blockquote></div><p>photo</p><br /><p>Спасибо!но я этот код вставляю в свой и как то ничего не происходит... <img src="https://forum.php-myadmin.ru/img/smilies/sad.png" width="15" height="15" alt="sad" />&nbsp; <img src="https://forum.php-myadmin.ru/img/smilies/sad.png" width="15" height="15" alt="sad" />&nbsp; <img src="https://forum.php-myadmin.ru/img/smilies/sad.png" width="15" height="15" alt="sad" /> может что то не правильно...???</p>]]></content>
			<author>
				<name><![CDATA[Сафарик]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5233</uri>
			</author>
			<updated>2013-05-25T15:35:23Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23092#p23092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23089#p23089" />
			<content type="html"><![CDATA[<p>Получается примерно так:<br /></p><div class="codebox"><pre><code>case &quot;specialists&quot;:
  echo &quot;Специалисты&quot;;
  $query = &quot;SELECT * FROM `doktors`&quot;;
  break;
case &quot;photo&quot;:
  echo &quot;Фотоотчёт&quot;;
  $query = &quot;SELECT * FROM `photo`&quot;;
  break;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2013-05-25T13:38:44Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23089#p23089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23085#p23085" />
			<content type="html"><![CDATA[<p>я смотрел разные выводы постраничные,но там как то все сложно математически какими то формулами высчитывают количество страниц и т.п. наверное же существует какой то вариант намного проще нежели этот...конкретно вывести таблицу doktors на страницу <a href="http://medicine.local/index.php?page=specialists">http://medicine.local/index.php?page=specialists</a> или как???подскажите пожалуйста...</p>]]></content>
			<author>
				<name><![CDATA[Сафарик]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5233</uri>
			</author>
			<updated>2013-05-24T15:01:34Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23085#p23085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23084#p23084" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>В скрипте обработайте переменную $_GET[&#039;page&#039;] и если она существует и равна specialists, то сделайте запрос к базе данных для вывода соответствующей страницы.</p></blockquote></div><p>в общем вот мои скрипты<br />&lt;?php<br />$dbhost = &quot;localhost&quot;; // Имя хоста БД<br />$dbusername = &quot;root&quot;; // Пользователь БД<br />$dbpass = &quot;&quot;; // Пароль к базе<br />$dbname = &quot;poliklinika&quot;; // Имя базы</p><p>$dbconnect = mysql_connect ($dbhost, $dbusername, $dbpass); <br />if (!$dbconnect) { echo (&quot;Не могу подключиться к серверу базы данных!&quot;); }</p><p>if(@mysql_select_db($dbname)) { echo &quot;&quot;; }<br />else die (&quot;Не могу подключиться к базе данных $dbname!&quot;);<br />?&gt;</p><p>далее тут html данные</p><p>потом</p><p>&lt;?php<br />&nbsp; &nbsp; switch ($_GET[&#039;page&#039;])<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Главная&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;main&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Главная&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;licency&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Лицензии&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;manual&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Руководство&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;history&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;История&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;specialists&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Специалисты&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;app&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Аппаратура&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;record&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Запись на приём&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;payment&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Платные услуги&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;shedule&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Режим работы&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;contacts&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Контакты&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case &quot;photo&quot;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;Фотоотчёт&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />?&gt;</p><p>далее тут тоже html&nbsp; и </p><p>&lt;?php</p><p>&nbsp; </p><br /><p>/* Выполняем SQL-запрос */<br />$query = &quot;SELECT * FROM doktors&quot;;<br />$result = mysql_query($query) or die(&quot;Query failed: &quot;.mysql_error());</p><p>/* Выводим результаты в html */<br />echo &quot;&lt;table border=1&gt;&quot;;<br />while ($line = mysql_fetch_assoc($result))<br />{<br />echo &quot;&lt;tr&gt;&quot;;<br />foreach ($line as $col_value)<br />{<br />echo &quot;&lt;td&gt;$col_value&lt;/td&gt;&quot;;<br />}<br />echo &quot;&lt;/tr&gt;&quot;;<br />}<br />echo &quot;&lt;/table&gt;&quot;;</p><br /><br /><p> ?&gt;</p><p>далее тоже html<br />вот я даже незнаю как сделать и что сделать,если кто подскажет хотя бы пример нужного кода было бы не плохо,далее разберусь думаю</p>]]></content>
			<author>
				<name><![CDATA[Сафарик]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5233</uri>
			</author>
			<updated>2013-05-24T14:45:54Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23084#p23084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23083#p23083" />
			<content type="html"><![CDATA[<p>В скрипте обработайте переменную $_GET[&#039;page&#039;] и если она существует и равна specialists, то сделайте запрос к базе данных для вывода соответствующей страницы.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2013-05-24T13:13:41Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23083#p23083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помощь нужна,срочным образом!!!]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=23082#p23082" />
			<content type="html"><![CDATA[<p>Здравствуйте,у меня такой вопрос:<br />Вот имеется у меня в базе таблица &quot;специалисты&quot; и есть php сайт,на сайте навигация состоящия из &quot;главной&quot;,&quot;руководства&quot;,&quot;истории&quot; и специалистов&quot;.При открытии например какой либо ссылки навигации,открывается страница <a href="http://medicine.local/index.php?page=main">http://medicine.local/index.php?page=main</a> или <a href="http://medicine.local/index.php?page=manual">http://medicine.local/index.php?page=manual</a> или <a href="http://medicine.local/index.php?page=specialists,мне">http://medicine.local/index.php?page=specialists,мне</a> нужно чтобы таблица &quot;специалисты&quot; из базы показывалась только на вкладке <a href="http://medicine.local/index.php?page=specialists,помогите">http://medicine.local/index.php?page=sp … s,помогите</a> кому не сложно,весь интернет уже облазил нигде ничего подходящего не нашел... <img src="https://forum.php-myadmin.ru/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[Сафарик]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=5233</uri>
			</author>
			<updated>2013-05-24T06:31:17Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=23082#p23082</id>
		</entry>
</feed>
