Php sort in order in differnet colums.
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> PHP Scripting
 
eqrunner  -  Fri Aug 03, 2012 6:42 pm Reply with quote
Using php, how can I sort the root directory into four columns? Each for different file names?
All of the files are in the same directory.
Looking to list the following files in their respective columns, Sorted with most Recent on top:
temperature-2012-*.php
dimmerrackAmps-2012-*.php
dimmerrackVolts-2012-*.php
dimmerrackTemp-2012-*.php

I know how to show all directory. and omit "." and "..". (as seen in the below pages) but I can't figure out how to get sort($array) to work right. And then list it with the most recent on top.

See layout here:
http://ice2012.eqrunner.com/index.php

current script can be seen here:
http://ice2012.eqrunner.com/index.phps

Column <div> are located at the bottom of the page.[/url]
eqrunner  -  Mon Aug 13, 2012 6:56 pm Reply with quote
Got an answer to my above post. Figured I would post the answer for anyone else.

Answer Explained: http://www.php-forum.com/phpforum/viewtopic.php?f=2&t=20348

Code

 
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> PHP Scripting All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.