I currently have this....
<p>
<?php
If ($v1=="1") {
echo '<a href="#overlay1" rel="#overlay1"><img src="/modules/mod_test/img/'. $pic1 .'" alt="triggers overlay" /></a> '. $title1.' '. $des1 .'<br>
';
}
?>
<?php
If ($v2=="1") {
echo '<a href="#overlay2" rel="#overlay2"><img src="/modules/mod_test/img/'. $pic2 .'" alt="triggers overlay" /></a> '. $title2.' '. $des2 .'<br>
';
}
?>
<?php
If ($v3=="1") {
echo '<a href="#overlay3" rel="#overlay3"><img src="/modules/mod_test/img/'. $pic3 .'" alt="triggers overlay" /></a> '. $title3.' '. $des3 .'<br>
';
}
?>
</p>
I would like it to be able to read multiple files, currently limited to 10... so I'm guessing something that looks like this but... not sure
<?php
$lines = file('files.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
foreach($lines as $line)
{
list($vid, $title, $dec) = explode('-', $line);
$n++;
echo "<div class=\"overlay\" id=\"overlay$n\">";
echo "'. $dec .'<a href=''. $url .'/clips/$vid'>";
echo "</div>";
}
?>
Suggestions? Many Thanks...you guys and gals are a REALLY huge help!!