Want to color/shade the specific cell while exporting the csv file via PHP
Hi!
I m exporting a csv via php. i need to shade specific cells on some conditions any idea how to do that?
a piece of code is here...
while(!$rsLength->EOF && $rsLength!=null)
{
$rsPrice = $objProduct->GetProdPrice($rsWidth->fields['width_ID'],$rsLength->fields['length_ID'],$ProdID);
if(strlen($rsPrice->fields['price'])==0)
$new_contents .= "---,";
else
{
if($rsPrice->fields['isSplice']==1)
{?>
<font color="red"> <?$new_contents .= "*$ ".$rsPrice->fields['price'].",";
?></font><?
}
else if($rsPrice->fields['isSplice']==0)
$new_contents .= "$ ".$rsPrice->fields['price'].",";
}
$rsLength->MoveNext();
}
I m exporting a csv via php. i need to shade specific cells on some conditions any idea how to do that?
a piece of code is here...
while(!$rsLength->EOF && $rsLength!=null)
{
$rsPrice = $objProduct->GetProdPrice($rsWidth->fields['width_ID'],$rsLength->fields['length_ID'],$ProdID);
if(strlen($rsPrice->fields['price'])==0)
$new_contents .= "---,";
else
{
if($rsPrice->fields['isSplice']==1)
{?>
<font color="red"> <?$new_contents .= "*$ ".$rsPrice->fields['price'].",";
?></font><?
}
else if($rsPrice->fields['isSplice']==0)
$new_contents .= "$ ".$rsPrice->fields['price'].",";
}
$rsLength->MoveNext();
}
help needed
March 26,