magpierss + youtube

Discussion in 'XML & RSS' started by kogepan, Jan 24, 2007.

  1. #1
    <?php
    require_once('rss_fetch.inc');

    $tag = "(URL address blocked: See forum rules)".$video.".rss";
    if ( $video ) {
    echo "<table border='0'>";
    $rss = fetch_rss( $tag );
    $numvideos = 0;
    foreach ($rss->items as $item) {
    if ($numvideos == 2 || $numvideos == 4 || $numvideos == 6 || $numvideos == 0){ echo "</tr><tr>";}
    $numvideos++;
    preg_match('/img src="(.*)\.jpg"/',$item["description"],$imgUrlMatches);

    $imgurl = $imgUrlMatches[0];
    $title = $item["title"];
    $url = $item["link"];

    echo "<td align='center'><a href=\"$url\">"
    ."<$imgurl alt=\"$title\"/>"
    ."</a>\n</td>";

    }
    echo "</table>";
    }
    ?>

    i cant get this to work ?

    im getting this: Parse error: parse error, unexpected T_VARIABLE

    any help?

    thanks!
     
    kogepan, Jan 24, 2007 IP
  2. NetworkTown.Net

    NetworkTown.Net Well-Known Member

    Messages:
    2,022
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Did you get this sorted out? if yes can you PM me how you did it.
     
    NetworkTown.Net, Mar 8, 2007 IP