Hopefully, this is the last of my problems as the site is more-or-less done. However, I am completely clueless as to what is happening.
The scenario: I have a form which the user fills out and the input then overwrites the previous data in the database using the MySQL statement 'UPDATE'. (it's a profile website) This all works fine and the database is updated but there are a few problems:
1: The row in the database table has a tendancy to delete all of the data inside it.
2: I am unsure how to let the user know that the update was successful.
3: The link to the page ends with editprofile.php?id=1, so if the user is clever enough, they can change the id to another number and edit somebody else's profile.
The code:: http://www.darkfx.co.uk/studios/editprofile.php.txt
There are a few more problems but I will have to figure out the solutions.
The scenario: I have a form which the user fills out and the input then overwrites the previous data in the database using the MySQL statement 'UPDATE'. (it's a profile website) This all works fine and the database is updated but there are a few problems:
1: The row in the database table has a tendancy to delete all of the data inside it.
2: I am unsure how to let the user know that the update was successful.
3: The link to the page ends with editprofile.php?id=1, so if the user is clever enough, they can change the id to another number and edit somebody else's profile.
The code:: http://www.darkfx.co.uk/studios/editprofile.php.txt
There are a few more problems but I will have to figure out the solutions.






