get info from my database

Discussion in 'MySQL' started by Mr.only, Jan 17, 2011.

  1. #1
    i have mad form send data to my database ..

    and i wonder i want get the last 10 data intered to vew in any page ..

    my form like this ..

    <FORM action="thanx.php" method="post">
         Name       :<INPUT size="40" name="name">
         pubisher id:<INPUT size="40" name="url" >
                         <INPUT type="submit" value="send" name="send">
    </FORM>
    Code (markup):
    and i want make new page with the last 10 data sent to db

    something like this

    name : url
    name :url
    ....

    just last 10 name and url sent to db

    can you tell me how can i do this .
     
    Mr.only, Jan 17, 2011 IP
  2. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hire someone.

    Honestly, this is extremely trivial. If this is a questions you are asking on a forum without first trying to achieve on your own, my suggestion is to hire someone to do it for you.

    If, however you have tried and are having errors, please ask more specific questions and we will help.
     
    plog, Jan 18, 2011 IP
  3. asdirc

    asdirc Active Member

    Messages:
    275
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    you can try this command: Select * From `table` Where 1 order by `id` DESC LIMIT 10
     
    asdirc, Jan 19, 2011 IP