Flag to indicate detail records exist | 
	
									
	7/14/2005 07:47:29 | |
| PHPRunner General questions | ||
| 
	 
		
 Hi,  | 
	
									
	||
| 
 
 | 
						 
							Sergey Kornilov admin 7/14/2005 | 
| 
 
 The easiest way to count number of details is to run a SQL query for each row on the master page. Here is the sample SQL query: $sqltemp = "select count(*) from DetailsTable where DetailKeyField = ".$data["MasterKeyField"]; $rstemp = db_query($sqltemp, $conn); $datatemp = db_fetch_numarray($rstemp); echo $datatemp[0];  | 
											|