i have this php code:
<?php foreach(glob("166*.html") as $orchid) : ?>
<?php echo "$orchid" . "<br>\n" ?>
<?php endforeach ?>
which prints list of files matching 166, and has html extension.
i’m wondering how to make the resulting output as links, so it’s clickable? thanks.
Change to:
<?php echo "<a href=\"$orchid\">$orchid</a>" . "<br>\n" ?>
7 Likes
It would be great if you marked @wackyblackie ‘s reply as a solution for future users’ reference.
5 Likes
earlier i don’t have solution button for some reason.
It was because you used the wrong catagory. Informal is not for support requests.
3 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.