load html files by its names in alphabetical order with include php
I got this code on my site
<div id="tips-wrap">
<?php
include('news/games/02GA.html');
?>
</div>
<div id="tips-wrap">
<?php
include('news/games/03GA.html');
?>
</div>
it works pretty well, but I want to chage it, so it can load the files by
its names in alphabetical order with the last first, but I need it to
cycle with the new news
something like this:
<div id="tips-wrap">
<?php
include('news/003.html');
?>
</div>
<div id="tips-wrap">
<?php
include('news/002.html');
?>
</div>
so when we update the site with 050.html the code loads it in the first
slot of the page. I dont know if this is possible, I´m new with php
No comments:
Post a Comment