sort links by date with PHP ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alessandro
    Confirmed User
    • Oct 2002
    • 283

    #1

    sort links by date with PHP ?

    hi ,
    I need a script that sorts my links (thumbs + text) by date .
    Anyone knows a good one ?
    suck my sig
  • ppk
    Confirmed User
    • Dec 2002
    • 214

    #2
    What format is the raw data in?
    Buy Quality Gallery Traffic for as little as $0.85/K!
    Sell Quality Gallery Traffic!

    Comment

    • Alessandro
      Confirmed User
      • Oct 2002
      • 283

      #3
      Originally posted by ppk
      What format is the raw data in?
      can you ICQ me ? #132818937

      suck my sig

      Comment

      • pornanza
        Confirmed User
        • Jul 2003
        • 238

        #4
        SELECT title, url FROM links ORDER BY date DESC;

        ryan
        Eskimo Hoe
        QuickWank
        Pornanza!

        Comment

        • wsjb78
          Confirmed User
          • Jun 2002
          • 594

          #5
          Originally posted by pornanza
          SELECT title, url FROM links ORDER BY date DESC;

          ryan
          And for entering the date:

          PHP Code:
          $time_now = mkdate();
          $sql = "INSERT INTO link SET title='$title', url='$url', date='$time_now'";
          if(mysql_query($sql) {
            echo "New link successfully added";
          } else {
            echo "Could not add new link";
          } 
          

          Comment

          • assistant27
            So Fucking Banned
            • Mar 2003
            • 256

            #6
            ....

            Comment

            • hyper
              Confirmed User
              • Mar 2002
              • 5294

              #7
              select * from table order by date desc

              Comment

              Working...