Im creating option with if, because if need that on load item would b selected by the current view. I dont need JS. I was trying to do this, but i get error because of if, i done everything right i think here it is:
echo ('<option value="?m=ticketsmith&ticket_company=' . $row['company_id'] . '&type='.$type.'"'. if ($show_uid == $row['company_id']) { echo ' selected="selected"';}'/>' . $row['company_id'].', ' . $row["company_name"]) ;
I hope you guys will help me. And here is error messege: Parse error: syntax error, unexpected 'if' (T_IF) in