|
-
March 3rd, 2002, 04:50 PM
#16
[quote]Originally posted by BurnFEST:
<strong>I've had a look at your website...i take it your news is all php...and in order from newest to oldest...my only real problem right now is that...how do you do it?
Burn.</strong><hr></blockquote>
when you take the data from mysql you need to sort it in the query string
example1:
$sql = "select * from photo order by Pusername ASC";
example2:
$sql = "select * from photo order by Pusername DESC";
ASC = a-z
DESC - z-a
ASC and DESC well sort it for you thats all you need to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks