I've got this script working nicely but while I was testing 2 questions cropped up:
1. If the new password entered is the same as the current password, it is rejected. Is that a feature of mysql?
2. mysqli_error didn't show up the error that I was encountering as a result of question 1. Is there something wrong with my code?
echo '<h1>System Error</h1>
<p class="error">You password could not be changed due to a system error. We apologise
for any inconvenience.</p>';
echo '<p>' . mysqli_error($dbc) . '</p><p>Query: ' . $q . '</p>';
Everything displayed including the $q variable but not the mysqli_error($dbc). Thanks for replying.