I have a blob being returned from a query in the following format
N:Smith;Jim;Alvin;Mr. FN:Jim A.
Smith CATEGORIES:Family
BDAY:1977-01-27 ADR;WORK:;Suite
900;11 5th Street;Coco
Beach;FL;32082 ADR;HOME:;;198 Elm
Street;Coco Beach;FL;32082
TEL;WORK:904-555-9384;
TEL;HOME:904-873-0394
TEL;CELL:904-934-3429
I have parsed it using the following
$vcard = str_replace("\r", "</td></tr>\n<tr><td valign=\"top\" class=\"$row_class\">", $vcard);
$vcard = str_replace("END:VCARD" , "</td></tr></table>", $vcard);
$vcard = str_replace(":" , ": ", $vcard);
$vcard = str_replace(";" , " ", $vcard);
My problem is, that I would like alternatiing colours for each row - however because each row is returned all at once, instead of the usual "while" loop - I have been unable to style it.
Would anyone have any idea on how I could achieve this or even a pointer or two?
thnx in advance