Posted by Geoff Berrow on 06/24/06 12:40
Message-ID: <449d2e3f$1@news.broadpark.no> from Ørjan Langbakk contained
the following:
>I need to have each <td> present in the code, so as to be able
>to assign a class to the last one, but how? I can tell as much as that I
>know the number of <td>'s in each CSV-file - they are a constant).
>
>Any help would be appreciated.
Untested.
....
$this->html .= "<tr>";
$count=0;
foreach($row as $field){
if($count<3){
$this->html .= "<td>$field</td>";
}
else{
$this->html .= "<td
style='text-align:center'>$field</td>";
}
$count ++;
}
$this->html .= "</tr>\n";
....
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
[Back to original message]
|