I want to update a field so it's has the same value as a field from another table. Do I need to JOIN the two tables together to achieve this? This is the script I am trying at the moment, which does not include any JOIN.
Example
$result = mysql_query("UPDATE table2 SET field2='table1.field1' WHERE username ='$username'");
Is there anything wrong with this?
Thanks for any assistance