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? Quote Link to comment https://forums.phpfreaks.com/topic/228687-echo-html-in-php/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.