Results 1 to 5 of 5

Thread: [RESOLVED] Update

Hybrid View

  1. #1
    Fanatic Member jcavard's Avatar
    Join Date
    Jul 2005
    Location
    Quebec, CANADA
    Posts
    534

    Re: Update

    you then have to submit the form containing the updated value and query the db with an UPDATE query
    PHP Code:
    $query "UPDATE info SET title='" $_POST['title'] . "', first_name='" $_POST['fname'] . " ... WHERE uni_pass = '" $_POST['univerpass'] . "' and dob = '" $_POST['date'] . "'"

    EDIT: Also, you should use
    PHP Code:
    <?php echo $email?>
    without quote...
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    accoustic emo-rock band: a tailormade fable

    Visual Studio 2003 / Framework 1.1

  2. #2

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    6

    Re: Update

    PHP Code:
    $query "UPDATE info SET title='" $_POST['title'] . "', first_name='" $_POST['fname'] . " ... WHERE uni_pass = '" $_POST['univerpass'] . "' and dob = '" $_POST['date'] . "'"
    Tried this line and now it says that univerpass and date are undefined index

    What i done with this code is put it on the page where the form submits to is this right or should i of put the code on the page where the information is changed (the code i showed on the first post).

Posting Permissions

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



Click Here to Expand Forum to Full Width