<option value='$row2['cID']'>".$row2['prefix']."
Throws an error:
syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in
This code works fine:
<option>".$row2['prefix']." "."</option><br />
How can I add the cID in?
Thanks
Fix your quoting
Or better: enclose the whole thing in double-quotes and enclose the array elements in
{}