PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
It is getting the correct value as is known from the echo. It never displays 'Password successfully changed', hence the query is not being successfully executed, can anyone suggest why?
in this case security isnt an issue just yet, because it is just in testing.
Okay having put quotes around the $user as well, the code is now saying password changed successfully but the database isnt changed, im not sure what the problem is?
I can't see anything else wrong with the query. Could it be that you need to send a "COMMIT" command to the database to commit the changes you've made?
If you run the query manually in the database does it update correctly?