March 19, 20178 yr Hi, I have a field called 'mytournament1'. I also have a field called 'mytournament1played'. With a form, I create the variable $tournament to bring 'mytournament1' to my results page. $tournament = $_GET['tournament']; I'd like to force the results page to search for the field 'mytournament1played' for each record by using the variable $tournament and combining the word 'played' or the variable $played. $played = 'played'; $tournamentplayed = $tournament . $played; $tournamentplayed2 = $record->getField('$tournamentplayed'); (I want it to deliver) $record->getField('mytournament1played'); I know the 1st '$record->getField' line is wrong. Can I combine 2 variables that spell out a database field name (mytournament1played) that can be used to call up a field in a search? i.e. if ($tournamentplayed2!='1') { thanks in advance for your help!
Create an account or sign in to comment