i am updating data posted from form. one of the column is of datatime datatype in mysql.
All the data is updating except the Datetime column.
My code is as below
DB::table('CANDIDATE')
->where('CANDIDATEID',$ID)
->update(
[
'fname'=>$fname
,'mname'=>$mname
,'lname'=>$lname
,'fname'=>$fname
,'genderid'=>$GENDERID
,'dob'=>$dob
,'address'=>$address
,'city'=>$city
,'pinno'=>$pinno
,'statesid'=>$STATESID
,'countryid'=>$COUNTRYID
,'contactno'=>$contactno
,'industryprtid'=>$INDUSTRYPRTID
,'cur_prof_titl'=>$cur_prof_titl
,'skills'=>$skills
,'certificate'=>$certificate
,'emp_typeid'=>$EMPTYPEID
,'experienceid'=>$EXPERIENCEID
,'educationid'=>$EDUCATIONID
,'edu_major'=>$edu_major
,'other_detail'=>$other_detail
,'mainobj'=>$mainobj
,'relocate'=>$relocate
,'sal_rngid'=>$sal_rngid
]
);
What is wrong in the code.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l3rl7a
via IFTTT
Aucun commentaire:
Enregistrer un commentaire