title: How copy data from one table into another? PHP
body: <p>Following problem there are 2 tables, "Daten" and "Server" in my Mysql DB called "csv" they both got "ServerID" inside them as a column. How can I copy the data in column "ServerID" from the table "Server" to "Daten".</p>
  
  <p>I probably have to say the numbers in "Server" "ServerID" are AUTO-Increment.</p>
  
  <p>The result I want is: in ServerID is a number and I want that number in the other table too.</p>
  
  <p>I tried this but its only giving me: "111111111111111111111111111111111111"</p>
  
  <pre><code>$con=mysqli_connect("localhost","THUNI","root","csv");
  // Check connection
  if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }
  
  $sql="SELECT ServerID FROM Server";
  $result=mysqli_query($con,$sql);
  
  
   //Associative array
  $row=mysqli_fetch_array($result, MYSQLI_ASSOC);
  printf ($row["ServerID"]);
  
  // Free result set
  mysqli_free_result($result);
  </code></pre>
  
  <p>Can someone help me?</p>