Dear Vampire,
after i read all the posts for ur thread.. i want to ask you few questions and give comments about ur codes...
first of all..
y do u need to include a function? while u can just write the codes inside the same page (i mean.. a seperate function after the main function)
e.g., include("checkdupe.php"); or this include("editfields.php");
u just made ur codes complicated and mess around~!
ur error checking is really a mess~~~~
u can use ECHO tho~~ a shorter way to output lines, instead of writing print("bla bla bla"); everytime..
i dun understand y u used $REQUEST while u can use normal method of $GET or $_POST?
in one MySQL method, it is advisable to use CONCATENATE instead of '.' in this code $fullname = ($editfname." ".$editlname);
or.. better yet.. y do u need to combine the fname and lname into fullname while u can jus save the data seperately? and so later, to retrieve the name, u can jus use the CONCATENATE method to combine the fname and lname to become a fullname..
there is a better way to update all fields.. regardless the data is empty.. by using foreach loop instead of ur current method..
$sql = "UPDATE clientdb SET fname='$editfname', lname ='$editlname', phone = '$editphone' , email = '$editemail' , street = '$editstreet' , city = '$editcity' , state = '$editstate' , postcode = '$editpostcode' , country = '$editcountry' where clientid = '$id'";
seriously... from my opinion, ur codes is not well-organized and too complicated to be process..
maybe that is why ur update is not working..
as per say.. i would like to help you with ur codes.. jus tell me ur situation, about the process flow, and i will come up with codes whichever suits, as i will give u my own coding which has been implemented successfully in my system..
Hope i can help you whenever i can.. and i'm sorry if whatever i said earlier in a harsh words...
Have a gud day then..
Warm wishes.. videxx.. 🆒