This should be simple, but I can't figure it out.
I want to check if $Corn has any data in the field...
$Corn = $row['Corn'];
Most of the time it does and everything works ok.
But if it does not have any data, I need to change the variable $Corn from nothing to the word "Undisclosed".
I check it this way...
If (!$Corn) {
$Corn = "Undisclosed"
}
else {
$Corn = $english_format_number = number_format($Corn)
};
But I keep getting syntax error, unexpected '}' on this line.
Any suggestions?