1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Displaying Backwards with a Loop

Discussion in 'PHP' started by kc3, Apr 15, 2005.

  1. #1
    Okay, this is a dumb question, but when you create a loop to display information is puts the last information in the mysql database last. So, how do you reverse it so the newly entered information is displayed at the top while the older information is displayed last. Either thay or how do you make it so information is inserted into the database where the newest query is entered above the last.
     
    kc3, Apr 15, 2005 IP
  2. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Why don't you date the info in the table with a date column and sort on the date ascending or decending which ever is appropriate on select?
     
    noppid, Apr 15, 2005 IP
  3. kc3

    kc3 Peon

    Messages:
    857
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, I have them numbered. That will do good, I can't believe I didn't realize that. Thank you very much.
     
    kc3, Apr 15, 2005 IP