Home | Community | Message Board

Cannabis Seeds UK
This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: PhytoExtractum Maeng Da Thai Kratom Leaf Powder   Unfolding Nature Unfolding Nature: Being in the Implicate Order

Jump to first unread post Pages: 1
OfflineNickio
Authority
Male User Gallery

Registered: 03/14/07
Posts: 321
Last seen: 13 years, 5 months
Who knows a little something about PHP?
    #7424250 - 09/18/07 03:24 PM (16 years, 4 months ago)

http://www.totse.com/community/showthread.php?p=8933739#post8933739

Post I put on another forum, check it out and reply here if you have anything to say about it :smile: If im not supposed to link outside Shroomery then I'll retype everything, just didnt wanna do it cuz im lazy.


--------------------


Extras: Filter Print Post Top
InvisibleKrishna
कृष्ण,LOL
 User Gallery

Registered: 05/08/03
Posts: 23,285
Loc: oakland
Re: Who knows a little something about PHP? [Re: Nickio]
    #7424410 - 09/18/07 04:07 PM (16 years, 4 months ago)

in the

Code:

$sql="SELECT * FROM $tbl_name" ;
$result=mysql_query($sql);



you need to specify an ORDER BY condition

something like

Code:

$sql="SELECT * FROM $tbl_name ORDER BY datetime DESC" ;
$result=mysql_query($sql);



would make it get the most recent post first (order them by datetime descending). change that DESC to ASC to order by datetime ascending (oldest datetime first). not sure how this will actually work properly if you have replies to posts, though - ah actually now i see it is a guestbook, so probably no reply fuctionality. so that should work just fine.


--------------------




Extras: Filter Print Post Top
Jump to top Pages: 1

Shop: PhytoExtractum Maeng Da Thai Kratom Leaf Powder   Unfolding Nature Unfolding Nature: Being in the Implicate Order


Similar ThreadsPosterViewsRepliesLast post
* php & MySQL Help BurblesV 431 7 04/02/09 12:19 AM
by The_Ghost
* HELP WANTED: we need 2 PHP programmers for the shroomery version of LOGD
( 1 2 all )
Fliquid 1,950 24 06/30/05 04:45 AM
by Fliquid
* php help In(di)go 338 2 06/24/08 05:19 PM
by In(di)go
* nobody appreciates real football anymore? shirley knott 997 5 10/12/06 07:09 PM
by eris
* Vampires! Real life vampires!! On a forum..
( 1 2 3 4 ... 23 24 )
PyroBurns 24,829 461 12/24/08 08:43 PM
by sui
* Website programming Irradiated_Feces 472 5 02/13/08 02:40 PM
by unbeliever
* The newest Ubuntu distro Gainer 875 14 07/22/08 09:11 PM
by Gainer
* I Need Help With a Website Earth_Droid 978 9 03/01/04 09:33 PM
by C20H25N3O

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Entire Staff
390 topic views. 4 members, 51 guests and 68 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.021 seconds spending 0.008 seconds on 14 queries.