关于在PHP中插入数组[关闭]

After retrieving the values from a table using fetch function and putting it into $row[variable].

Is there a way store those values into another table?

Shure Simply use a "normal" INSERT Statement and insert your Data to a new table

mysql_query("INSERT INTO Persons (FirstName, LastName, Age)
VALUES ('$row[name]', 'row[surname]','$row[age]')");

You might want to iterate with a foreach / while over your incomming rose

Or directly use the loop from retrieving the data to insert them again somewhere else

Yes, after the retrieving the value in $row[variable] you can run a simple insert query with the above variable like,

<?php
$query = mysql_query("Insert into table (field_name1) values ("'.$row[variable].'")");
?>