Nice release :) I would add some input sanitization though, to easy to hack that script and gain full access to accounts table (no offense as all the sites on here require that).
else{
$sql = "UPDATE account SET password='$hash' WHERE name='$userid'";
$query = mysql_query($sql) or die(mysql_error());
The $query variable is what's running the sql. Since you have it defined, it will run even if its not called through an echo or print statement.Quote:
ok , Thank you
i changed a few more things in it that i noticed (in some cases)
i changed the "echo" comamnds to "die" commands to prevent execution of the other commands (what happends in rare cases)
but after looking true the script i founded something where i can not figure out how it comes that it works ( make no sense for me but it works)
if i understand php good enouf , then $query need to run somewhere or it is not even suposed to be running ? (as it is a variable that get set to the command $query so you can use that command to execute on the place you like )Code:else{ $sql = "UPDATE account SET password='$hash' WHERE name='$userid'"; $query = mysql_query($sql) or die(mysql_error());
anyway , thank you for the update
i going edit my first post with this new post and the mirror fix on it
Greets From PowerChaos