
	case '#record#':
		$query="select #dispfield# from #tablename# where #primarykey#=?";
		$rs=sql_prep($query,$db,$#primarykey#);
		$myrow=sql_fetch_assoc($rs);
		$slugtitle=$myrow['#primarykey#'];
	break;