Actually that did not work!!
after i put the code in:
<?php
$xmlfile = fopen("http://www.sonicfreelance.com/rss_sonic.php?t=0", "r");
if(!$xmlfile)die("script not functioning");
$readfile = fread($xmlfile ,40000);
$searchfile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$filechunks = explode("<item>", $arrayreg[0]);
$count = count($filechunks);
for($i=1 ; $i<=$count-1 ;$i++)
{
$color = ($i%2==0)?'F7F7F7':'000000';
/**
* Place the $color variable wherever you need to
* to color the row. Not sure of the complete output,
* so I don't know where you want it to go.
*/
ereg("<title>(.*)</title>",$filechunks[$i], $title);
ereg("<link>(.*)</link>",$filechunks[$i], $links);
echo "<li style='background-color: #$color'>";
echo "<a href ='$links[$i]'>$title[$i]</a>";
echo "</li>";
}
?>
I realized that the colors were showing up fine...BUT...the second link was missing. So basically the 1st line was there with the background color, but the second link had a backgound color just no link.....
I added some more info and every link after the firs does not show up....the background colors do, but no links....??
thanks,
Ned