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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.