Hi
An example of my code is:
<?php
// Make a MySQL Connection
mysql_connect("localhost", "user", "pass") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());
// Get all the data from the "example" table
$result = mysql_query("SELECT * FROM table1")
or die(mysql_error());
echo "<table border='1'>";
echo "<tr> <th>Name</th></tr>";
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
echo "<tr><td>";
echo $row['invoiceyymm'].$row['agentid'];
}
echo "</table>";
mysql_close();
?>
I have printed the results into a table but I would like to insert these results into a different field in the table (fieldX).
Hope this gives a better idea.