Hello and welcome to our community! Is this your first visit?
Register
Results 1 to 3 of 3

Thread: SQL Problem

  1. #1
    lucien is queen Hazzystan's Avatar

    Join Date
    Feb 2008
    Location
    Scotland
    Posts
    2,977

    SQL Problem

    I'm creating an "edit profile" Page for my website, and I have a little problem: Whenever I try to edit my information, it creates a new account in the database instead of editing my current one. This is the SQL statement that I'm using:

    Code:
    INSERT INTO members
    (username, location) VALUES('$username', '$location')
    But I have no idea how to edit the values of a user, it just creates a new one.

    Any help? Thanks
    what is homo love?

  2. #2
    Obsessed Veteran Adam's Avatar



    Join Date
    Nov 2004
    Location
    UK / England
    Posts
    17,271

  3. #3
    lucien is queen Hazzystan's Avatar

    Join Date
    Feb 2008
    Location
    Scotland
    Posts
    2,977

    Re: SQL Problem

    Thanks, feel free to lock.
    what is homo love?


 

Posting Permissions

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