<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1017932" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1017932</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/counter-mysql-db#comment-1107140</link>
    <description> &lt;p&gt;Thanks Mark.&lt;/p&gt;
 </description>
     <pubDate>Wed, 17 Apr 2002 13:59:41 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1107140 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/counter-mysql-db#comment-1107068</link>
    <description> &lt;p&gt;SQL:&lt;br /&gt;
UPDATE table_name SET field1=field1+1 WHERE field2=&#039;key&#039;&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 20:11:03 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1107068 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/counter-mysql-db#comment-1107034</link>
    <description> &lt;p&gt;I don&#039;t know if this will help but I&#039;ll give it a stab.&lt;/p&gt;
&lt;p&gt;When a surfer clicks on the thumbnail of an image for instance to get the details, a variable is passed such as &lt;a href=&quot;http://&quot; class=&quot;bb-url&quot;&gt;http://&lt;/a&gt;*.com?detail=view&amp;amp;image_id=image_id to tell the script to parse this block of code to show this information from the database.&lt;/p&gt;
&lt;p&gt;Put in the code something like:&lt;br /&gt;
if(isset($detail)):&lt;br /&gt;
$sql=&quot;update thetable set count+1 where image_id=&#039;$image_id&#039;&quot;;&lt;br /&gt;
mysql_query($sql);&lt;br /&gt;
endif;&lt;/p&gt;
&lt;p&gt;The sql may be wrong but you get the idea. This is if there was a field in the image data called count. Now your count for clicks to view details are incremented.&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 15:04:06 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1107034 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/counter-mysql-db#comment-1106878</link>
    <description> &lt;p&gt;I don&#039;t think it is that hard, but it depends on your whole system.  Rather than link directly to the image in a  URL, you need to link to a &quot;count and display&quot; script that increments a counter in the database for the image, and THEN display the image. So your link looks like &lt;IMG and the php script uses the query string input to know which record to update and it sounds like about hours including building the database tables and proofing the maybe as little as minutes in /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 15 Apr 2002 04:07:49 +0000</pubDate>
 <dc:creator>galt</dc:creator>
 <guid isPermaLink="false">comment 1106878 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/counter-mysql-db#comment-1104961</link>
    <description> &lt;p&gt;Thanks, think I may have to rethink some of the options I want, getting way to involved and messy&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Mar 2002 08:22:48 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1104961 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/counter-mysql-db#comment-1104931</link>
    <description> &lt;p&gt;If each page had a unique page_id, you could do it. It would be even easier to count the clicks if someone clicked on a thumbnail image. I have seen this code in gallery, a web based photo display. If you do store it in a database, the database would get to be pretty big after awhile, so that you would probably have to have a script to roll the data into another table.&lt;/p&gt;
 </description>
     <pubDate>Sun, 17 Mar 2002 18:57:45 +0000</pubDate>
 <dc:creator>mairving</dc:creator>
 <guid isPermaLink="false">comment 1104931 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
