Conditional statement to set value of html form selected attribute

IN PROGRESS
Bids
11
Avg Bid (ZAR)
R183
Project Budget (ZAR)
R100 - R210

Project Description:
I have a function that populates the form|select|option field from one MySQL table based on a corresponding field in another table...

I also want to include the select="selected" attribute based on a == operator but this does not seem to work.

please check attached files for code

edit_team.php is the main page
teamtemp.php is where I tried to debug using a different method

Skills required:
Electronic Forms, HTML, MySQL, PHP, Website Design
Additional Files: teamtemp.php edit_team.php players.png teams.png
Hire LFXza
Project posted by:
LFXza South Africa
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


R 180
in 0 days
R 130
in 0 days
R 220
in 0 days
Hire dustafo
R 200
in 1 days
R 150
in 0 days
R 160
in 1 days
R 195
in 0 days
Hire jayprogrammer
R 195
in 1 days
R 195
in 0 days
R 180
in 3 days