Conditional statement to set value of html form selected attribute

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

[url removed, login to view] is the main page

[url removed, login to view] is where I tried to debug using a different method

Skills: Electronic Forms, HTML, MySQL, PHP, Website Design

See more: html conditional set value, conditional design, attribute, mysql select statement, table set html, select option, check attribute, html form code, html form method, form conditional html, html form table design, html debug, check website value, Method Statement, php mysql statement, operator select, mysql statement, form debug php, html page table mysql, website value check, select table html, value table, php form debug, select form select mysql, statement work website design

About the Employer:
( 4 reviews ) Cape Town, South Africa

Project ID: #4999666

Awarded to:


Php mysql expert here. I have 2years of experience in web development. I am ready to do this for you. Lets start

R150 ZAR in 0 days
(107 Reviews)

10 freelancers are bidding on average R185 for this job


Hello Sir I am ready to fix this code right away. Please check my profile for experience. Looking forward to work with you Regards Ashwin

R180 ZAR in 0 days
(245 Reviews)

we will do this task now and send you files. I will start once we get this project. We have 9+ yrs exp in php and mysql.

R130 ZAR in 0 days
(93 Reviews)

Hi, I am a professional web developer and designer with over 5 years of experience. This is a really simple task for me and I can complete it within next 2 hours Ahmar

R220 ZAR in 0 days
(87 Reviews)

I can get this done for you right away.

R200 ZAR in 1 day
(99 Reviews)

hi immediately ready to start work please message me back then i can show you our work . you really love our work. regards shabirkssol

R160 ZAR in 1 day
(20 Reviews)

Sir I work in html,css (Div and table,Grid base design,responsive using twitter bootstrap )and also work in php,mysql,opencart,prestashop,zen cart,magento,wordpress and codeigniter and jquery have a more than 3 year More

R195 ZAR in 0 days
(27 Reviews)

Hi, I have 7 years of work experience in PHP and MySQL.I can solve this issue.I am available right now and and can start the work as soon bid is [url removed, login to view] work will be completed in next few hours. Thanks, Jay

R195 ZAR in 1 day
(47 Reviews)

Hi my frind, ur project is very easy and I can do it in the next 1H. and if ur problem is u can't make selected="selected" works. please use the php function (trim) on the both condition terms. e.g: if (trim($ More

R195 ZAR in 0 days
(6 Reviews)

Hi, Before hiring some one ,You should check my profile and portfolio from [url removed, login to view] where everything is 100%. 100% on time and quality is assured. I am independent and professional developer a More

R180 ZAR in 3 days
(4 Reviews)

hi i understand your problem i fix it with with in 2 hour. i start your work right now and give you quality work with in your budget

R195 ZAR in 1 day
(1 Review)

Hello, this is an easy fix that I can make for you right now. A quick job; should be 30 minutes or less based on project/problem description. I am available to you via phone/email/Skype while performinng the work and More

R190 ZAR in 1 day
(0 Reviews)