Just giving you an idea (not checked):
PHP Code:
<?php
foreach($rows as $row)
{
$gp_percent[] = ($row['sales']!=0)?$row['gp']/$row['sales']:0;
}
?>
bye
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --