I'm back. I've added a field to a table and I want to populate it with the values in another table. I have written this basic code so I can call it at my browser. This is so I can do it one record at a time, ie.
I have all required permissions and both tables match id for id. But this script does not update even though it seems to follow the syntax in the manual. The request to the table membersid is successful and brings in the value I need.
(any value xxxxx is for security reasons :)
// connect to database
$db = mysql_connect("localhost", "xxxxx", "xxxxx");
// get value from existing column
$result = mysql_query("SELECT * FROM membersid WHERE id=$id");
$myrow = mysql_fetch_array($result);
// update new column
$result1 = mysql_query("UPDATE members SET actualid=$actualid WHERE id=$id");
As always, thanks in advance for any help.