PHP Code:
if(isset($last_name_upd)) {
update_details();
}
else {
//print something
}
Replace the "print something" with a line of HTML or something similar. Suspect that this is the point of failure, though I'm struggling to follow the variables in my head.
---------- Post added at 23:21 ---------- Previous post was at 23:15 ----------
I would have used frm and db prefixes for the form and database variables, to avoid the possibility of confusion, which if the else above is true, would be most likely what has happened.