Change a user password with php? need help!
7 posts
Page 1 of 1
I know how to update normal data in a MySQL table but not how to change a user password.
can someone explain?
can someone explain?
Sorry for the late reply, perhaps this could help: http://www.plus2net.com/php_tutorial/ph ... ssword.php
Hope it does ;)
-Comathi-
Hope it does ;)
-Comathi-
Even if Comathi's post did help you should try and elaborate more if you want help & maybe even tell us the database structure if you wanted to do it via script.
a simple "UPDATE `{table_name}` SET `{col1}` = '{val1}' AND `{col2}` = '{val2}'" should work for you.
Code: Select all
Well If topic is bumped, then okmysql_query("UPDATE `table` SET `password`='".$_POST['password']."' WHERE `username`='".$_POST['username']."'");
Last edited by Filip on Tue Jan 01, 2013 8:06 pm, edited 1 time in total.
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo
Filip, you missed a ' after ['password']." ;)
rocky4126 wrote:Filip, you missed a ' after ['password']." ;)Thanks for pointing that out, fixed..
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo
7 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023