title: how to update multiple tables in mysql php
body: <p>can anyone tell me whats wrong in this code</p>
  
  <pre><code>$sql = "
  UPDATE graduation
       , classxii
       , classx
     SET university = '$university'
       , college ='$college'
       , course = '$course'
       , branch = '$branch'
       , year = '$year'
       , school1 = '$school1'
       , board1 = '$board1'
       , percentage1 = '$percentage1'
       , year1 = '$year1'
       , school2 = '$school2'
       , board2 = '$board2'
       , percentage2 = '$percentage2'
       , `year2 = '$year2'
       WHERE graduation.email = '$email'
       , classxii.email = '$email'
       , classx.email = '$email'
  ";
  </code></pre>
  
  <p>Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' <code>classxii.email</code>='rajdeep@gmail.com', <code>classx.email</code>='rajdeep@gmail.com''</p>