title: PHP and MYSQLI , function mysqli_multi_query
body: <p>I'm trying to use mysqli_multi_query function but it doesn't work. I think the echo will give me an error to print the $res value, but it print me "1". And so the fetch_array doesn't work because in the first parameter it doesn't accept number 1. </p>
  
  <pre><code>$sql =" start transaction;";
  $sql .="insert into account (user_id, username, activation_date, passw) 
  values ('$id','$username',CURDATE(),'$password');";
  $sql .="insert into users (user_id,name,surname,birth,email,photo) values 
  ('$id','$name', '$surname','$birth','$mail','$foto');";
  $sql .="commit work;";
  
  
  $res=mysqli_multi_query($connessione, $sql);
  echo( $res);
  if($res != FALSE)   {   
  $row=mysqli_fetch_array($res,MYSQLI_ASSOC); 
  echo mysqli_error($connessione);
     return $row;
  } else {
  print_r(mysqli_error_list($connessione));
  echo "&lt;br&gt;";
      mysqli_close($connessione);
     return false;
  }
  </code></pre>
  
  <hr>
  
  <p>P.S. In mysql WorkBench the values of the query are added to my tables. So i think the query works.</p>
  
  <p>What could it be?</p>