Hi,
I am trying to update mysql tables and the code works fine without giving me any error but when I go and check my tables to see if they have been update and there is no change in them. Help please.
$query= "UPDATE personalinfo SET firstname='$_POST[firstname]',lastname='$_POST[lastname]',birthdate='$_POST[birthdate]',
sex='$_POST[sex]',contract='$_POST[contract]',jobtitle='$_POST[jobtitle]',jobcategory='$_POST[jobcategory]',
startdate='$_POST[startdate]',probationdate='$_POST[probationdate]',enddate='$_POST[enddate]',
contractlocation='$_POST[contractlocation]',managingsection='$_POST[managingsection]',
branch='$_POST[branch]',salary='$_POST[salary]',address='$_POST[address]'_POST[phone]' WHERE firstname='$_POST[firstname]' AND lastname='$_POST[lastname]'";
$result=mysqli_query($cxn,$query) or die ("Couldn't execute query.".mysqli_error($cxn));
echo "Personal Info Updated";
I get the message that personal info is updated but nothing seems to change in mysql tables.
Thank you