currently I have this...
</p>
<!-- overlays for videos -->
<div class="overlay" id="overlay1">
<a class="player" href="http://localhost/clips/<?php echo $vid1 ?>">
</a>
</div>
<div class="overlay" id="overlay2">
<a class="player" href="http://localhost/clips/<?php echo $vid2 ?>">
</a>
</div>
<div class="overlay" id="overlay3">
<a class="player" href="http://localhost/clips/<?php echo $vid3 ?>">
</a>
</div>
<div class="overlay" id="overlay4">
<a class="player" href="http://localhost/clips/<?php echo $vid4 ?>">
</a>
</div>
<div class="overlay" id="overlay5">
<a class="player" href="http://localhost/clips/<?php echo $vid5 ?>">
</a>
</div>
<div class="overlay" id="overlay6">
<a class="player" href="http://localhost/clips/<?php echo $vid6 ?>">
</a>
</div>
<div class="overlay" id="overlay7">
<a class="player" href="http://localhost/clips/<?php echo $vid7 ?>">
</a>
</div>
<div class="overlay" id="overlay8">
<a class="player" href="http://localhost/clips/<?php echo $vid8 ?>">
</a>
</div>
<div class="overlay" id="overlay9">
<a class="player" href="http://localhost/clips/<?php echo $vid9 ?>">
</a>
</div>
<div class="overlay" id="overlay10">
<a class="player" href="http://localhost/clips/<?php echo $vid10 ?>">
</a>
</div>
I would like to transform it into something more like this...
<!-- the playlist. simple HTML controlled with CSS -->
<div id="playlist">
<?php
$lines = file('modules/mod_flowplay/edit/file.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
list($filename, $title, $time) = explode('-', $line);
echo "<a href='$path/$filename'> $title <br />$time";
}
?>
</div>
<!-- let the rest of the page float normally -->
<br clear="all" />
<!-- END DO NOT CHANGE THIS -->
For starters I know I change the div id but there is where I get into trouble because each overlay div has a number...
Secondly if I'm correct I can just exchange the $filename, $title and $time with other variables to get what I want.. so I guess I go back to question 1...
Thanks in advance