i want to concatinate select_teacherActivity with variable $week_no and variable $activity as one word
$Activity->description = $request->input('select_teacherActivity".$week_no.".$activity');
There are multiple syntax errors in the code shared:
All opening quotes should close with the corresponding type of quote:
'select_teacherActivity" //Wrong
'select_teacherActivity' //Right
.". //Wrong
."".//Right (but unnecessary)
There is also have a stray ' at the end.
Full code:
$Activity->description = $request->input('select_teacherActivity'.$week_no.$activity);
input('select_teacherActivity".$week_no.".$activity');toinput("select_teacherActivity$week_no$activity");(in double quotes)