Jump to content

Why wont this update the database


searls03

Recommended Posts

ok, it works if i take out the id trying to insert.  How do I make it so that it will insert.  I want to take current session id id and put it into the id field in the table

If you take the condition WHERE out then it will UPDATE every single record in your DB (assuming you have some).  If you want to add records to the table then use INSERT not UPDATE.

Link to comment
Share on other sites

ok. it's working now.  now I Need to figure out how I, the admin, can edit anybody's profile from the internet, cause now that it works, it only will update mine, but not anyone elses.

You should start a new thread for this question.  Provide the current code and relevant details.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.