Why MySQL won't update via php?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #16
    I've tried the things you shown above in the examples above yet still does not work..
    No! You were asked to check the result of the query and output variables.
    We do not want unhelpful comments like 'It does not work'
    What is being returned from the query and what values are passed from the form?
    Code:
    echo $_SERVER['PHP_SELF'];
    print_r($_POST);
    echo $person['Name']; 
    echo $person['Description']; 
    echo $_GET['id']; 
    echo $u
    print_r($result);
    print_r($person);
    Insert the above in sensible places in your code and all should become clear.

    Comment

    • brandon slakter
      New Member
      • Jan 2011
      • 9

      #17
      Codegreen relax there buddy. Go take a pill. Already taken care of without your code!

      Comment

      • code green
        Recognized Expert Top Contributor
        • Mar 2007
        • 1726

        #18
        Glad you solved it. Now I am relaxed.

        Comment

        • kovik
          Recognized Expert Top Contributor
          • Jun 2007
          • 1044

          #19
          Programmers who take pride in their work don't take kindly to lazy programmers who don't know how to debug. If you continue this attitude, you will start to see a pattern.

          Comment

          • brandon slakter
            New Member
            • Jan 2011
            • 9

            #20
            Im no where near a programer. I came here to ask for help because of it. Like I said, I took this code from youtube and it did not work. Thanks to you, you fixed something that was not on this code in the first place. This was the first time I have ever touched php,mysql...so instead of giving up like most I came to this website.. I can see from your point of view but again..... this was my first time ever touching php and mysql

            Comment

            • kovik
              Recognized Expert Top Contributor
              • Jun 2007
              • 1044

              #21
              Okay. For future reference, when we ask for you to echo something, echo it and tell us the results so that we can help. Programmers (in PHP, especially) can do things in many different ways and until we get more specifics, we can't do much else. My suspicion was that the id in your query string was invalid and I was trying to demonstrate that to you without saying it outright.

              It was possible that I was wrong, though I'm usually right. ;)

              Comment

              Working...