Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2011
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Php linking id to input into db via form

    Hi guys,

    I need helping taking the ID from the user and inputting it into a database via a form.

    Here is the link to my code:

    http://stackoverflow.com/questions/9...sing-mysql-php

    Regards

    Jon

  • #2
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,530
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Um...

    Have you tested to see where the code is going wrong? Is the data making it from the form to the code that inserts it? Does the insert query look right? Where is $rows['id']; defined? Most of the comments over on stackoverflow are the same I have... you've dumped a bunch of code, but as nothing stands out as obviously wrong, you need to do the debugging.

    Also, no point in double posting within hours of each other.

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Double posted here. PHP FORM SUBMIT with User ID into Database

    Closing thread.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •