<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=2314&amp;type=atom" />
	<updated>2011-08-30T17:44:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=2314</id>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17400#p17400" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>metall84 сказал:</cite><blockquote><p>я так понимаю где то здесь это должно быть?</p></blockquote></div><p>Сомневаюсь. Мне кажется там должна быть другая таблица, но точно я сказать не смогу.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-08-30T17:44:41Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17400#p17400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17401#p17401" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>metall84 сказал:</cite><blockquote><p>я так понимаю где то здесь это должно быть?</p></blockquote></div><p>Сомневаюсь. Мне кажется там должна быть другая таблица, но точно я сказать не смогу.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-08-30T17:44:41Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17401#p17401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17399#p17399" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><div class="quotebox"><cite>metall84 сказал:</cite><blockquote><p>вобщем пришел к выводу что такой таблицы у меня и нет. а как ее сделать ума не приложу</p></blockquote></div><p>Если к скрипту не было дампа со структурами таблиц, то самому такую таблицу сделать будет крайне затруднительно, ведь даже не понятно какие там поля.</p></blockquote></div><p>я так понимаю где то здесь это должно быть?<br />CREATE TABLE IF NOT EXISTS `tb_ads` (<br />&nbsp; `id` int(11) NOT NULL auto_increment,<br />&nbsp; `user` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `ip` varchar(15) NOT NULL default &#039;&#039;,<br />&nbsp; `tipo` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `timer` char(2) NOT NULL default &#039;20&#039;,<br />&nbsp; `visitime` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `ident` int(11) default NULL,<br />&nbsp; `fechainicia` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `paypalemail` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `plan` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `highlight` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `url` varchar(150) NOT NULL default &#039;&#039;,<br />&nbsp; `urldomen` varchar(150) NOT NULL,<br />&nbsp; `description` varchar(180) NOT NULL default &#039;&#039;,<br />&nbsp; `category` int(11) NOT NULL,<br />&nbsp; `members` varchar(150) NOT NULL default &#039;0&#039;,<br />&nbsp; `outside` varchar(150) NOT NULL default &#039;0&#039;,<br />&nbsp; `claims` int(5) NOT NULL default &#039;0&#039;,<br />&nbsp; PRIMARY KEY&nbsp; (`id`),<br />&nbsp; KEY `tipo` (`tipo`),<br />&nbsp; KEY `visitime` (`visitime`),<br />&nbsp; KEY `ident` (`ident`),<br />&nbsp; KEY `category` (`category`)<br />) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=cp1251 AUTO_INCREMENT=249 ;</p><p>--<br />-- Дамп данных таблицы `tb_ads`</p>]]></content>
			<author>
				<name><![CDATA[metall84]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=3781</uri>
			</author>
			<updated>2011-08-30T16:32:26Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17399#p17399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17397#p17397" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>metall84 сказал:</cite><blockquote><p>вобщем пришел к выводу что такой таблицы у меня и нет. а как ее сделать ума не приложу</p></blockquote></div><p>Если к скрипту не было дампа со структурами таблиц, то самому такую таблицу сделать будет крайне затруднительно, ведь даже не понятно какие там поля.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-08-30T16:01:39Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17397#p17397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17395#p17395" />
			<content type="html"><![CDATA[<p>вобщем пришел к выводу что такой таблицы у меня и нет. а как ее сделать ума не приложу</p>]]></content>
			<author>
				<name><![CDATA[metall84]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=3781</uri>
			</author>
			<updated>2011-08-30T15:53:12Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17395#p17395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17392#p17392" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>metall84 сказал:</cite><blockquote><p>А вы не могли бы подсказать как это сделать?</p></blockquote></div><p>В phpMyAdmin выберите базу данных и перейдите во вкладку выполнения SQL запроса, где вставьте текст запроса и нажмите OK. Если запрос не вернет подсчитанных строк из таблицы tb_ads_wmid, значит проблема в самом запросе.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-08-30T15:13:13Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17392#p17392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17390#p17390" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p>Проверьте в phpMyAdmin выполнение запроса:<br /></p><div class="codebox"><pre><code>SELECT COUNT(id) FROM tb_ads_wmid</code></pre></div><p>Вероятно он не возвращает данные.</p></blockquote></div><p>А вы не могли бы подсказать как это сделать? я не знаю</p>]]></content>
			<author>
				<name><![CDATA[metall84]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=3781</uri>
			</author>
			<updated>2011-08-30T13:03:04Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17390#p17390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17389#p17389" />
			<content type="html"><![CDATA[<p>Проверьте в phpMyAdmin выполнение запроса:<br /></p><div class="codebox"><pre><code>SELECT COUNT(id) FROM tb_ads_wmid</code></pre></div><p>Вероятно он не возвращает данные.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2011-08-30T12:59:56Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17389#p17389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Warning: mysql_result(): supplied argument is not a valid MySQL result]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=17388#p17388" />
			<content type="html"><![CDATA[<p>Помогите пожалуйста, на сайте вылазит вот это <strong>Warning: mysql_result(): supplied argument is not a valid MySQL result resource in Z:\home\wmzmetall\www\wiews_sites.php on line 24</strong><em>Вот код wiews_sites.php</em> &lt;?php<br />$pagetitle=&quot;ПРОСМОТР САЙТОВ&quot;;<br />include(&#039;header.php&#039;);<br />require(&#039;config.php&#039;);<br />?&gt;</p><p>&lt;script type=&quot;text/javascript&quot; src=&quot;scripts/showhide.js&quot;&gt;&lt;/script&gt;<br />&lt;div align=&quot;left&quot;&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;u&gt;&lt;i&gt;Статические ссылки рекламодателей:&lt;/i&gt;&lt;/u&gt;&lt;/span&gt;&lt;?php include(&#039;includes/statlink.php&#039;);?&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;</p><p>&lt;?php<br />$sd=date(&quot;d.m.Y&quot;,time()); $vd=date(&quot;d.m.Y&quot;,time()-24*3600); $s=0; $v=0;</p><p>$res=mysql_query(&quot;SELECT * FROM tb_adsdate WHERE data=&#039;$sd&#039;&quot;);<br />$res=mysql_fetch_array($res);</p><p>if($res[&quot;kolvo&quot;]!=&#039;&#039;) {$s=$res[&quot;kolvo&quot;];}</p><p>$res=mysql_query(&quot;SELECT * FROM tb_adsdate WHERE data=&#039;$vd&#039;&quot;);<br />$res=mysql_fetch_array($res);</p><p>if($res[&quot;kolvo&quot;]!=&#039;&#039;) {$v=$res[&quot;kolvo&quot;];}</p><p>$check_wmid = mysql_query(&quot;SELECT COUNT(id) FROM tb_ads_wmid&quot;);<br />$wmid_exist = mysql_result($check_wmid,0);<br />?&gt;</p><p>&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&lt;i&gt;Динамические ссылки рекламодателей:&lt;/i&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;<br />Сегодня новых ссылок: &lt;?php echo $s;?&gt; шт.&lt;br /&gt;<br />Вчера было новых ссылок: &lt;?php echo $v;?&gt; шт.&lt;br /&gt;<br />Рекламодателей: &lt;?php echo $wmid_exist;?&gt; чел. &lt;a href=&quot;ads_wmid.php&quot;&gt;[Список рекламодателей &amp;gt;&amp;gt;]&lt;/a&gt;</p><br /><p>&lt;?php<br />// $i - id ссылки<br />// $t - timer ссылки<br />// $v - визитность юзера<br />// $p - заказано<br />// $h - цвет ссылки<br />// $u - URL ссылки<br />// $d - текст<br />// $m - просмотры юзеров<br />// $o - просмотры гостей<br />// $cl- кол-во жалоб</p><p>function GET_DOMAIN($url) {<br />&nbsp; &nbsp; $parts = parse_url($url);<br />&nbsp; &nbsp; $host = $parts[&#039;host&#039;];<br />&nbsp; &nbsp; return $host;<br />}</p><br /><p>function format_serft($i, $t, $v, $p, $h, $u, $d, $m, $o, $cl){<br />&nbsp; &nbsp; echo &#039;&lt;fieldset class=&quot;serf&quot; style=&quot;padding-left:30px; background:url(http://favicon.yandex.net/favicon/&#039;.GET_DOMAIN($u).&#039;) no-repeat .5% 1em;&quot;&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($m &gt;= $p) { mysql_query(&quot;UPDATE tb_ads SET tipo=&#039;adsend&#039; WHERE id=&#039;$i&#039;&quot;) or die(mysql_error()); }<br />&nbsp; &nbsp; &nbsp; &nbsp; if($h!=&quot;&quot;) {$stillinks=&#039;class=&quot;blocks2&quot;&#039;;}else{$stillinks=&#039;class=&quot;blocks1&quot;&#039;;}<br />&nbsp; &nbsp; &nbsp; &nbsp; if($cl&gt;10) {$imginf = &#039;&lt;img src=&quot;img/warning.png&quot; width=&quot;20&quot; align=&quot;middle&quot; border=&quot;0&quot; alt=&quot;infected&quot; title=&quot;сайт возможно содержит вредоносный код!&quot; /&gt;&#039;;}else{$imginf=&quot;&quot;;}<br />&nbsp; &nbsp; &nbsp; &nbsp; if(!$v){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&#039;.$imginf.&#039; &lt;a onclick=&quot;javascript: this.style.textDecoration=\&#039;line-through\&#039;;&quot; href=&quot;view_sites.php?id=&#039;.$i.&#039;&amp;amp;scode=&#039;.md5(date(&quot;H&quot;)).&#039;&quot; &#039;.$stillinks.&#039; target=&quot;_blank&quot;&gt;&#039;.$d.&#039;&lt;/a&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; }else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&#039;.$imginf.&#039; &lt;font color=&quot;#4F4F4F&quot; style=&quot;text-decoration:line-through;&quot;&gt;&#039;.$d.&#039;&lt;/font&gt;&#039;; // просмотренная ссылка //</p><p>&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&lt;div class=&quot;text-min&quot;&gt;&lt;i&gt;&#039;.GET_DOMAIN($u).&#039;&lt;/i&gt; &amp;#183; Заказано: &#039;.$p.&#039; &amp;#183; Визитов: &#039;.$m.&#039; &amp;#183; Таймер: &#039;.$t.&#039; &amp;#183; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;newclaims.php?id=&#039;.$i.&#039;&quot; class=&quot;min&quot; title=&quot;Подать жалобу&quot;&gt;Подать жалобу&lt;/a&gt; &amp;#183; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span id=&quot;ontext&#039;.$i.&#039;&quot; style=&quot;display: inline;&quot;&gt;&lt;a href=&quot;javascript:on(&#039;.$i.&#039;);&quot; class=&quot;min&quot;&gt;Подробнее&lt;img src=&quot;img/s_d.gif&quot; width=&quot;7&quot; align=&quot;middle&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span id=&quot;offtext&#039;.$i.&#039;&quot; style=&quot;display: none;&quot;&gt;&lt;a href=&quot;javascript:off(&#039;.$i.&#039;);&quot; class=&quot;min&quot;&gt;Скрыть&lt;img src=&quot;img/s_u.gif&quot; width=&quot;7&quot; align=&quot;middle&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&lt;div id=&quot;text&#039;.$i.&#039;&quot; class=&quot;podr&quot;&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;URL: &lt;a href=&quot;&#039;.$u.&#039;&quot; target=&quot;_blank&quot;&gt;&#039;.$u.&#039;&lt;/a&gt;&lt;br /&gt;Просмотры: &#039;.($m+$o).&#039; (пользователи: &#039;.$m.&#039;, гости: &#039;.$o.&#039;)&lt;br /&gt;Жалобы пользователей: &lt;font color=&quot;red&quot;&gt;&#039;.$cl.&#039;&lt;/font&gt;&lt;/div&gt;&#039;;<br />&nbsp; &nbsp; echo &#039;&lt;/fieldset&gt;&#039;;<br />}</p><p>function format_psevdo($i, $h, $u, $d, $m, $o) {<br />&nbsp; &nbsp; echo &#039;&lt;fieldset class=&quot;serf&quot; style=&quot;padding-left:30px; background:url(http://favicon.yandex.net/favicon/&#039;.GET_DOMAIN($u).&#039;) no-repeat .5% 1em;&quot;&gt;&#039;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if($h==&quot;1&quot;) {$stillinks=&#039;class=&quot;blocks2&quot;&#039;;}else{$stillinks=&#039;class=&quot;blocks1&quot;&#039;;}</p><p>&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&lt;a onclick=&quot;javascript: this.style.textDecoration=\&#039;line-through\&#039;;&quot; href=&quot;viewp_sites.php?id=&#039;.$i.&#039;&quot; &#039;.$stillinks.&#039; target=&quot;_blank&quot;&gt;&#039;.$d.&#039;&lt;/a&gt;&#039;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&lt;div class=&quot;text-min&quot;&gt;&lt;i&gt;&#039;.GET_DOMAIN($u).&#039;&lt;/i&gt; &amp;#183; Визитов: &#039;.$m.&#039; / &#039;.$o.&#039;&nbsp; / (&#039;.($m+$o).&#039;) &amp;#183;&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span id=&quot;ontext&#039;.$i.&#039;&quot; style=&quot;display: inline;&quot;&gt;&lt;a href=&quot;javascript:on(&#039;.$i.&#039;);&quot; class=&quot;min&quot;&gt;Подробнее&lt;img src=&quot;img/s_d.gif&quot; width=&quot;7&quot; align=&quot;middle&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span id=&quot;offtext&#039;.$i.&#039;&quot; style=&quot;display: none;&quot;&gt;&lt;a href=&quot;javascript:off(&#039;.$i.&#039;);&quot; class=&quot;min&quot;&gt;Скрыть&lt;img src=&quot;img/s_u.gif&quot; width=&quot;7&quot; align=&quot;middle&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;&lt;div id=&quot;text&#039;.$i.&#039;&quot; class=&quot;podr&quot;&gt;&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &#039;URL: &lt;a href=&quot;&#039;.$u.&#039;&quot; target=&quot;_blank&quot;&gt;&#039;.$u.&#039;&lt;/a&gt;&lt;br /&gt;Просмотры: &#039;.($m+$o).&#039; (пользователи: &#039;.$m.&#039;, гости: &#039;.$o.&#039;)&lt;/div&gt;&#039;;<br />&nbsp; &nbsp; echo &#039;&lt;/fieldset&gt;&#039;;<br />}</p><p>// Проверяем на &quot;визитность&quot; (только для пользователей)<br />if(isset($_SESSION[&quot;userLog&quot;]) &amp;&amp; isset($_SESSION[&quot;userPas&quot;]))<br />{<br />&nbsp; &nbsp; $sql = mysql_query(&quot;SELECT ident FROM `tb_ads_visits` WHERE tipo=&#039;visit&#039; AND user=&#039;{$username}&#039; AND visitime&gt;=UNIX_TIMESTAMP()-24*60*60&quot;);<br />&nbsp; &nbsp; if(mysql_num_rows($sql) &gt; 0){<br />&nbsp; &nbsp; &nbsp; &nbsp; while($row = mysql_fetch_assoc($sql))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $visited[($row[&#039;ident&#039;])] = true;<br />&nbsp; &nbsp; }else $visited = array();<br />}<br />?&gt;</p><p>&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;left&quot; style=&quot;padding-left: 15px;&quot;&gt;&lt;u&gt;&lt;font color=&quot;red&quot;&gt;&lt;b&gt;VIP РЕКЛАМА&lt;/b&gt;&lt;/font&gt;&lt;/u&gt;&lt;/div&gt;<br />&lt;div style=&quot;display: none;&quot;&gt;&lt;a href=&quot;http://moneygroup.com.ua&quot; title=&quot;Работа в интернете&quot;&gt;Обзоры спонсоров&lt;/a&gt; сайты для удаленной работы&lt;/div&gt;<br />&lt;?php<br />$sql = mysql_query(&quot;SELECT id,timer,plan,highlight,url,description,members,outside,claims FROM `tb_ads` WHERE tipo=&#039;ads&#039; AND category=&#039;0&#039; ORDER BY id DESC&quot;);<br />if(mysql_num_rows($sql) &gt; 0) {<br />&nbsp; &nbsp; while($links_row = mysql_fetch_assoc($sql)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if(isset($visited[($links_row[&#039;id&#039;])])) $is_visited = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; else $is_visited = false;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; format_serft(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;id&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;timer&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // timer<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $is_visited,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // is visited<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;plan&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // plan<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;highlight&#039;],&nbsp; &nbsp; // highlight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;url&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // url<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;description&#039;],&nbsp; &nbsp; &nbsp; // description<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;members&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // members<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;outside&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // outside<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;claims&#039;]&nbsp; &nbsp; &nbsp; &nbsp; // claims<br />&nbsp; &nbsp; &nbsp; &nbsp; );<br />&nbsp; &nbsp; }<br />}else{<br />&nbsp; &nbsp; echo &quot;&quot;;<br />}<br />?&gt;</p><p>&lt;br&gt;&lt;div align=&quot;left&quot; style=&quot;padding-left: 15px;&quot;&gt;&lt;u&gt;&lt;b&gt;Псевдо-динамические ссылки (не оплачиваются)&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;<br />&lt;?php<br />$sql = mysql_query(&quot;SELECT `id`, `highlight`, `url`, `description`, `members`, `outside` FROM `tb_ads_psevdo` WHERE `status`=&#039;pay&#039; ORDER BY id DESC&quot;);<br />if(mysql_num_rows($sql) &gt; 0) {<br />&nbsp; &nbsp; while($links_row = mysql_fetch_assoc($sql)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; format_psevdo(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;id&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;highlight&#039;],&nbsp; &nbsp; // highlight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;url&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // url<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;description&#039;],&nbsp; &nbsp; &nbsp; // description<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;members&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // members<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;outside&#039;]&nbsp; &nbsp; &nbsp; &nbsp; // outside<br />&nbsp; &nbsp; &nbsp; &nbsp; );<br />&nbsp; &nbsp; }<br />}else{<br />&nbsp; &nbsp; echo &quot;&quot;;<br />}<br />?&gt;</p><p>&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;<br />&lt;fieldset style=&quot;background: none; width:450px; margin:0px; padding:5px 5px 5px 5px; border:1px solid blue;&quot;&gt;&lt;legend&gt;&amp;nbsp;Баннеры 100x100&amp;nbsp;&lt;/legend&gt;<br />&lt;?php $kolbanner100=4; include(&#039;includes/banner100.php&#039;);?&gt;<br />&lt;/fieldset&gt;<br />&lt;div align=&quot;center&quot; padding:5px 0px 0px 5px;&quot;&gt;&lt;img src=&quot;img/topup.ico&quot; width=&quot;16&quot; border=&quot;0&quot; height=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;Image&quot; /&gt;&lt;a href=&quot;/advs_banner100x100.php&quot;&gt;Разместить баннер&lt;/a&gt;&lt;/div&gt;<br />&lt;/div&gt;</p><p>&lt;br&gt;&lt;div align=&quot;left&quot; style=&quot;color:green; padding-left: 15px;&quot;&gt;&lt;u&gt;&lt;b&gt;Обычная реклама&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;<br />&lt;?php<br />$sql = mysql_query(&quot;SELECT id,timer,plan,highlight,url,description,members,outside,claims FROM `tb_ads` WHERE tipo=&#039;ads&#039; AND category=&#039;1&#039; ORDER BY id DESC&quot;);<br />if(mysql_num_rows($sql) &gt; 0) {<br />&nbsp; &nbsp; while($links_row = mysql_fetch_assoc($sql)) {<br />&nbsp; &nbsp; &nbsp; &nbsp; if(isset($visited[($links_row[&#039;id&#039;])])) $is_visited = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; else $is_visited = false;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; format_serft(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;id&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;timer&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // timer<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $is_visited,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // is visited<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;plan&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // plan<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;highlight&#039;],&nbsp; &nbsp; // highlight<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;url&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // url<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;description&#039;],&nbsp; &nbsp; &nbsp; // description<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;members&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // members<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;outside&#039;],&nbsp; &nbsp; &nbsp; &nbsp; // outside<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links_row[&#039;claims&#039;]&nbsp; &nbsp; &nbsp; &nbsp; // claims<br />&nbsp; &nbsp; &nbsp; &nbsp; );<br />&nbsp; &nbsp; }<br />}else{<br />&nbsp; &nbsp; echo &quot;&quot;;<br />}<br />?&gt;</p><p>&lt;div align=&quot;left&quot; style=&quot;padding-left: 15px;&quot;&gt;&lt;b&gt;(*)&lt;/b&gt;&lt;a onclick=&quot;javascript: this.style.textDecoration=&#039;line-through&#039;;&quot; href=&quot;view_sites.php?id=1&amp;amp;scode=&lt;?php echo md5(date(&quot;H&quot;));?&gt;&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;&lt;/a&gt;- Просмотры гостей сайтов не учитываются при подсчете оплаченных просмотров&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;</p><p>&lt;div align=&quot;center&quot;&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;i&gt;Статические баннеры&lt;/i&gt;&lt;/span&gt;&lt;?php include(&#039;includes/banner.php&#039;);?&gt;&lt;/div&gt;</p><p>&lt;table width=&quot;100%&quot; border=&quot;0&quot; align=&quot;center&quot; cellspacing=&quot;1&quot; cellpadding=&quot;1&quot;&gt;<br />&nbsp; &nbsp; &lt;tr&gt;&lt;td align=&quot;right&quot;&gt;&lt;a onclick=&quot;javascript: this.style.textDecoration=&#039;line-through&#039;;&quot; href=&quot;view_sites.php?id=2&amp;amp;scode=&lt;?php echo md5(date(&quot;H&quot;));?&gt;&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#ebf3ea&quot;&gt;Много ссылок, без минималки&lt;/font&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;<br />&lt;/table&gt;</p><p>&lt;?php<br />mysql_close($con);<br />include(&#039;footer.php&#039;);?&gt;</p>]]></content>
			<author>
				<name><![CDATA[metall84]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=3781</uri>
			</author>
			<updated>2011-08-30T12:44:09Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=17388#p17388</id>
		</entry>
</feed>
