I have the following PHP variable:
$qStr1;
This, when printed or echoed, shows the following:
$q1, $q2, $q3, $q4, $q5
I have a bind-parm code:
mysqli_stmt_bind_param($proc, "iss$is", $respondent_id, $ip, $browser, $q1, $q2, $q3, $q4, $q5);
This works fine and saves correctly to the database, however, when I replace the individual parts with the variable (see below), it doesn't work, what am I doing wrong?
mysqli_stmt_bind_param($proc, "iss$is", $respondent_id, $ip, $browser, $qStr1);
Vardump is as follows:
string(49) "$q1, $q2, $q3, $q4, $q5, $q6, $q7, $q8, $q9, $q10"