title: Execute 2 Query via PHP
body: <p>I have a PHP file with the next code:</p>
  
  <pre><code>// UPDATE Gestion Password --&gt; update usuarios set usuarios.USU_ClaveUsuario='$contrasenyaNuevaEncript_GESTION' where usuarios.USU_idUsuarios='$idusuario'
  // UPDATE Moodle Password --&gt;  update mdl_user set mdl_user.password='$contrasenyaNuevaEncript_MOODLE' where mdl_user.username='$idusuario'
  
  if ($link-&gt;query($query) === TRUE) {
  echo "Contra Cambiada";
  } else {
  echo "Contra NO cambiada"
  };
  </code></pre>
  
  <p>Update gestion change password from one table,
  and update moodle from other table.</p>
  
  <p>I variables like <strong><em>$idusuario</em></strong>, <strong><em>$contrasenyaNuevaEncript_GESTION</em></strong> and <strong><em>$contrasenyaNuevaEncript_MOODLE</em></strong> are taked from form I created on other page.</p>
  
  <p>If make Query command from $query variable and if it done, show message "Contra Cambiada", else, "Contra No cambiada".</p>
  
  <p>I want execute that 2 commands (are in //) in the same PHP File.</p>
  
  <p>How I can do that?</p>
  
  <p>Best regards!</p>