View Single Post
  #3  
Old 09-13-2006, 11:18 AM
CORMAC CORMAC is offline
OSP Starters
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
CORMAC is on a distinguished road
Default

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 --
Reply With Quote
  Webmaster Forums - View Single Post - How would I do this in PHP?
View Single Post
  #3  
Old 09-13-2006, 11:18 AM
CORMAC CORMAC is offline
OSP Starters
 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
CORMAC is on a distinguished road
Default

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 --
Reply With Quote