Hello,
I am trying to update my database using a form.
While submitting this function is called, but nothing is changed. If I replace the variables with values, the function works fine, but not with variables.
function updateCandidate($id, $F_Name, $L_Name, $Gender, $Bday, $PhoneNo, $Address, $City, $Country, $Nationality, $experience, $Stat)
{
$q = "UPDATE candidates SET F_Name = '$F_Name', L_Name='$L_Name', Gender='$Gender',
Bday='$Bday', PhoneNo='$PhoneNo', Address = '$Address', City='$City',
Country = '$Country', Nationality = '$Nationality', Experience_idExperience='$experience',
Status= $Stat WHERE Users_UsersID = $id";
return mysql_query($q, $this->connection);