I'm having trouble with my php form that i query the info from the db which works fine now i just want when the user clicks submit to return the the selected value when the form reloads. I been trying to get this to work all night.
Example to be more clear.
--- Select ---
--- Apple ---
--- Banana ---
If they selected banana and clicked sumbit when the page reloads to have the field banana already selected. Here the code below. After 45 mins of fighting the "Parse error: syntax error, unexpected '.' I'm ready to pull my hair out so i hope you guys can lend a hand.
echo '<option value="'. $row['free'] .'" "'. $free==$row['free'] ? .'" selected=':'>$"'.$row['free'].'"</option>';
Thanks