I need something rather unique...
I have an older table with data like this:
Table Name:
table1
Column names:
PropertyID
Field
Amount
The use of this was that the "Field" column had a set value like "price" and the "Amount" column had the price... say "1,000". The "PropertyID" is what matched up to a second table (lets call it table2) that had a matching "PropertyID" column.
I am now trying to use just table2 and want to migrate the values from table1 to table2 all at once. I need to write an MySQL query or a PHP page that can grab the values from table1, and UPDATE table2 inserting the value of the column "Amount" in a new column called "Price" in table2, where table2.PropertyID=table1.PropertyID.
I have tried a few things but I am missing something. Hope someone can help.