|
Posted by Rik on 06/24/06 13:45
Ψrjan Langbakk wrote:
> Works like a charm :)
>
> Now, is there a way I can use _this_ code to also add styles to other
> <td>s? Or is this a "one-stop" option? I tried adding more counts, but
> couldn't seem to get it right - probably because I missed a basic
> point somewhere :)
Seeing as you know the number of array-elements here, replace with:
$rowhtml ='
<tr>
<td style="#somestyle1">%s</td>
<td style="#somestyle1">%s</td>
<td style="#somestyle1">%s</td>
<td style="#somestyle1">%s</td>
</tr>';
while(($row = fgetcsv($csvHandle, filesize($csvFile))) !== false){
$this->html .= vsprintf($rowhtml, $row);
}
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|