What settings to use to export mysql table rows that I'll be importing to another table with data using phpmyadmin
You have two possibilities.


use the export at the botton of the table, after selecting you data with the correct data


see 


use SELECT INTO OUTfile


LIKE

SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'
  FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
  LINES TERMINATED BY '\n'
  FROM test_table WHERE n= 1;


Please check the limitations in the link for secure_file_priv

You can after import it via phpmyadmin or use LOAD DATA Statement