[geeklog-cvs] geeklog-1.3/public_html profiles.php,1.28,1.29

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat May 29 07:44:33 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv13131

Modified Files:
	profiles.php 
Log Message:
Use UPDATE to increase the number of times a story has been emailed.


Index: profiles.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/profiles.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** profiles.php	2 Jan 2004 16:32:18 -0000	1.28
--- profiles.php	29 May 2004 11:44:31 -0000	1.29
***************
*** 252,259 ****
  
  	// Increment numemails counter for story
! 	$result = DB_query("SELECT numemails FROM {$_TABLES['stories']} WHERE sid = '$sid'");
! 	$A = DB_fetchArray($result);
! 	$numemails = $A['numemails'] + 1;
! 	DB_change($_TABLES['stories'],'numemails',$numemails,'sid',$sid);
  
  	return $retval;
--- 252,256 ----
  
  	// Increment numemails counter for story
!     DB_query ("UPDATE {$_TABLES['stories']} SET numemails = numemails + 1 WHERE sid = '$sid'");
  
  	return $retval;




More information about the geeklog-cvs mailing list