[geeklog-cvs] geeklog-1.3/public_html article.php,1.38,1.39

dhaun at geeklog.net dhaun at geeklog.net
Fri Dec 12 16:58:13 EST 2003


Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory geeklog_prod:/tmp/cvs-serv22398

Modified Files:
	article.php 
Log Message:
Use an UPDATE statement to update the hit counter (bug #121).


Index: article.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/article.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** article.php	23 Nov 2003 09:57:22 -0000	1.38
--- article.php	12 Dec 2003 21:58:10 -0000	1.39
***************
*** 141,145 ****
              $display .= COM_siteHeader ('menu');
  
!             DB_change ($_TABLES['stories'], 'hits', DB_getItem ($_TABLES['stories'], 'hits', "sid = '$story'") + 1, 'sid', $story);
  
              if ($query) {
--- 141,145 ----
              $display .= COM_siteHeader ('menu');
  
!             DB_query ("UPDATE {$_TABLES['stories']} SET hits = hits + 1 WHERE sid = '$story'");
  
              if ($query) {





More information about the geeklog-cvs mailing list