HI
Im using the following to update databases
MYSQL_QUERY( "insert into $table1 SELECT * FROM $table2 where 1 ");
There are 24 fields in each table, my problem is if a reference number ( ie. R12121 ) exists in table1 i want it to update and not add new record, how can this be done?