This is my first table query which is running in PHP PersonID is primary key of table employee and it is foreign key of experience.
$query = mysqli_query($conn,"UPDATE employee SET Firstname = $fname, Lastname =$lname, email_id =$email, Mobile_no =$mobile, city=$city WHERE PersonID = $userid");
my second table query
$query = mysqli_query($conn,"UPDATE experience SET Company_name = $com, Location =$local, Year_Of_Experience =$year, Description =$description WHERE id = $userid");
Any one have any idea how to update two table with common ID with multiple columns?