Ryanlawrence1 Posted June 10, 2007 Author Share Posted June 10, 2007 I found the Error BTW, But now the echo codes are coming up when they don't need to be, Quote Link to comment https://forums.phpfreaks.com/topic/54907-php-error-help-please/page/2/#findComment-271804 Share on other sites More sharing options...
simcoweb Posted June 11, 2007 Share Posted June 11, 2007 Which echoes? Quote Link to comment https://forums.phpfreaks.com/topic/54907-php-error-help-please/page/2/#findComment-272022 Share on other sites More sharing options...
mmarif4u Posted June 11, 2007 Share Posted June 11, 2007 Edit ur code to this and let me know what happened : $sql = "UPDATE users SET password = '".md5($newpass)."' WHERE username = '".$_SESSION['s_username']."' AND password = '".md5($oldpass)."' "; $res = mysql_query($sql,$dbc) or die (mysql_error()); $numrows = mysql_affected_rows($dbc); if ($numrows >0) { echo "your password has been changed "; } else { echo "Sorry You failed to enter the correct old password"; } mysql_query($sql,$dbc) or die (mysql_error()); } } Quote Link to comment https://forums.phpfreaks.com/topic/54907-php-error-help-please/page/2/#findComment-272098 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.