
function tmpl_#record#($params){
	$#primarykey#=$params['#primarykey#']+0;
	global $db;
	
	
	$query="select * from #tablename# where #primarykey#=?";
	$rs=sql_prep($query,$db,$#primarykey#);
	
	$myrow=sql_fetch_assoc($rs);
	
	
	
	
}

	
	