if (isset($row['product_limit'])){
if ($row['product_limit'] != 0){
echo $row['product_limit'];
} else {
echo $text_infinite;
}
} else {
echo $text_infinite;
}
Is there a better way of writing this???
EDIT:
though I used the @Radu code but here is the version i used
echo (isset($row['product_limit'])
&& $row['product_limit'] != 0) ? $row['product_limit'] : 'unlimited' ;
Not expected this many methods :) Thanks All