| 
 
 | 
						 
							Sergey Kornilov admin 7/20/2005 | 
| 
 
 Bob, LogInfo($strSQL); $rs=db_query($strSQL,$conn); $data=db_fetch_array($rs); 
 $updateSQL = "update table1 set viewed=now()"; $updateSQL = AddWhere($updateSQL,$where); db_exec($updateSQL,$conn); 
  | 
											|
| 
 
 | 
						 
							500301 7/20/2005 | 
| 
 
 Thanks, Sergey. I added the code, but don't see the field being updated. No error message either. Is it because I disabled 'view' in my app, and am only running 'list'? If so, can I modify _list.php with the same snippet?  | 
											|
| 
 
 | 
						 
							500302 7/20/2005 | 
| 
 
 Sergey, I've gotten your code to work by adding "view" mode... but now users have to click on list screen first and then view screen (the field I'm displaying is a hyperlink). Any way to put your code in _list.php, or to skip list screen and go straight to view screen?  | 
											|
| 
 
 | 
						 
							Sergey Kornilov admin 7/22/2005 | 
| 
 
 Bob, while(($data=db_fetch_array($rsData)) && $iNumberOfRows<$nPageSize)
 $where = AddFieldWrappers($strKeyField)."=".make_db_value($strKeyField,$data[$strKeyField]); | 
											|