SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: inserting data

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2002
    Location
    shropshire, west midlands, UK
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    inserting data

    I need to know the code that will allow a user to insert information where the userid is equal to the user id already stored in the session(i will use a form to enter). I intend to use it for a password change, i know how to run checks on the password e.g size limits,,,,,i just dont know how to insert into the database in an individual row where it is equal to their userid. I hope you understand what i mean.--------Thanx

  2. #2
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $query=mysql_query("UPDATE user SET password='$newpassword' WHERE userid='$userid'"); 
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky


Bookmarks

Posting Permissions

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