View Single Post
Old 06-29-2010, 03:32 PM   #4 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

I have tried out your code sample and it works good for me with a mockup array

php Code:
<?php

$testarr = array();
$testarr[] = array("url" => "http://trying.com");
$testarr[] = array("url" => "http://trying1.com");
$testarr[] = array("url" => "http://trying2.com");
$testarr[] = array("url" => "http://trying3.com");
$testarr[] = array("url" => "http://trying4.com");
$testarr[] = array("url" => "http://trying5.com");

if(isset($testarr[0]['url'])) {
  foreach($testarr as $video) {
    $yonlen = $video['url'];
    echo "<a href=$yonlen>Download $yonlen</a></br>";
  }
}
?>

It doesn't echo it twice. Maybe if we know the structure of the array like delayedinsanity said it would be easier to help you out.
tony is offline  
Reply With Quote