NogDog wrote:<?php
$output = TotalItem($sln);
if($output)
{
echo $output;
}
?>
Or, if you like one-liners:
<?php
echo (TotalItem($sln)) ? TotalItem($sln) : '';
?>
thanks for the response, could you show me how to make
<?php
echo (TotalItem($sln)) ? TotalItem($sln) : '';
?>
show some text too, like if a number greater then 0 is returned then show "(4 Items)" then if 0 returned it would show nothing? thanks for the help