![]() Topic awaiting preservation: MySQL query help... (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: under your rug, |
![]() I've got two tables, lets call em 'table1' & table2' and each of them say have two columns code: SELECT 1.id, 1.data, 2.homeid, 2.theid
code: $id = mysql_fetch_array ($result))
code: Update table2 SET homeid='new' WHERE homeid='old' AND theid="$id"
|
Paranoid (IV) Inmate From: Madison, Indiana, USA |
![]() It looks like you are using Perl to do your updating of the database. Is that so? code: foreach $id (@{$ids})
|