title: MySQL/PHP INSERT MySQL Problem?
body: <p>How do I insert two rows into two different tables. I can't seem to get this right?</p>
  
  <p>Here is the code below.</p>
  
  <pre><code>// tag is not there, so insert a new instance
    $mysqli = new mysqli("localhost", "root", "", "sitename");
    $clean_url = mysqli_real_escape_string($mysqli, $page);
    $dbc = mysqli_query($mysqli,"INSERT INTO q_tags (tag_id, users_q_id) VALUES ('$tag_num', '$page')");
    $dbc .= mysqli_query($mysqli,"INSERT INTO tags (tag) VALUES ('$tag')");
  
       echo "$tag has been entered";
  
  if (!$dbc) {
          // There was an error...do something about it here...
          print mysqli_error($mysqli);
  }
  </code></pre>