i have table "users" like this
id | firstname | lastname
==========================
1 | Ujang | ahmad
2 | Jajat | sudrajat
and have data :
$record = array('firstname'=>'some value', 'lastname'=>'some value');
$table = "users";
and process update like this :
$exc= $conn->AutoExecute($table, $record, 'UPDATE', 'id = 1');
how do I update field firstname with the value of lastname use AutoExecute
so I get a result like this :
id | firstname | lastname
==========================
1 | ahmad | Ujang
2 | sudrajat | Jajat
Unless I misunderstand you, AutoExecute doesn't seem right for the job. If you need to do a one-time conversion of all records in your table I would just rename the columns.
Or in PHP/ADODB:
If you need to target specific records you could use a temporary variable.
Cheers