I have the following IF/Else statement:
if ( {$row['Stock']} > 0 ) {
echo "<div class='col-md-2'>{$row['Stock']}</div>";
} else {
echo "<div class='col-md-2'>Out of Stock</div>";
}
The {$row['Stock']} is a field in a MySQL statement. If I just echo the Stock quantity, it will echo the number. However, with my If/Else statement I get nothing on the page at all... is there something wrong with putting that MySQL statement in the PHP If/Else?