fife Posted February 24, 2011 Share Posted February 24, 2011 I have written this code but im not used to echoing html in php so I have errors. echo " <option value= '{$county['county']}'" if ($User['county'])==$county['county']) {echo "selected";} echo">{$county['county']}</option>"; } the server error is; syntax error, unexpected T_IF, expecting ',' or ';' Can somebody please point out how I have written it wrong? Link to comment https://forums.phpfreaks.com/topic/228687-echo-html-in-php/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.