ID | SOMEVALUE -------------- 1 | NULL 2 | text 1 | NULL #### while ( ( $id, $value ) = $hStatement->fetrow_array ) { $hStatement2->prepare( INSERT INTO test2 VALUES ( ?, ? ) ); $hStatement2->execute( $id, $value ); } #### $hStatement2->prepare( $sSQL_Statement ); $hStatement2->execute( );