This is like inception trying to run PHP within PHP and I'm stuck.
I have a working line of code
$select1.='<option value="'.$rss['po_number'].'">'.$rss['po_number'].'</option>';
I want to have an option selected if a certain MySQL value matches the option value.
Such as:-
$select.='<option value="'.$rs['su_name'].'"' if('.$rs['su_name'].'==='.$row['xero_supplier'].') echo 'selected="selected">'.$rs['su_name'].'</option>';
But I can't for the life of me work out how to make this work and my brain is fried.