Jump to content

[SOLVED] Function


Bob-Marley

Recommended Posts

Before I do anything I would advise you to do two things...

 

1) Put your queries in strings so you can easily debug:

2) Put or die(mysql_error()); at the end of your queries so it displays any errors, which you claimed not to have any.

 

function Update($npass, $username){
$npass=md5($npass);
$sql="UPDATE users SET password='$npass' WHERE username='$username'";
echo $sql;
mysql_query($sql) or die(mysql_error());
}

Link to comment
https://forums.phpfreaks.com/topic/139242-solved-function/#findComment-728356
Share on other sites

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.