HI, probably a stupid question, but I have a number of variables, like
$var1 = "";
$var2 = "";
$var3 = "";
I need to add a string to one of them from a SQL query, to end up with the chosen one being:
$var2 = "Super"; or something like that. what will the correct syntax be? I currently have:
$templateOption1 = "";
$templateOption2 = "";
$templateOption3 = "";
$toCheck = $data['templateId'];
"$templateOption".$toCheck = "CHECKED";
Where
$data['templateId']
is from the SQL query, it returns a number
Thanks for any help!!