Fixed. I re-ran the query. This ran cleanly.
Code:
UPDATE setting SET optioncode='<select name=\"setting[$setting[allowmultiregs]]\">
<option value=\"0\" ".iif($setting[value]==0,"selected","").">NO - Dont allow multiples</option>
<option value=\"1\" ".iif($setting[value]==1,"selected","").">YES - allow multiples</option>
<option value=\"2\" ".iif($setting[value]==2,"selected","").">YES - but track multiples</option>
</select>' WHERE varname='allowmultiregs'
Yet I'm still getting this error under the spot it should be displayed in the CP.
Parse error: parse error, expecting `','' or `';'' in /mnt/web/guide/skullport/forum/admin/options.php(72) : eval()'d code on line 1
I've tried to put a ; at the end of
or
or at the end of
Code:
varname='allowmultiregs';
or even
Code:
varname='allowmultiregs;'
All of these run with success yet still generate a parse error.
I even tried this, based on a hack made by Drak and the query runs OK but it still generates a parse error.
I'm stumped
Syl...