Topic awaiting preservation: MySQL query help... |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: under your rug, |
posted 07-22-2003 21:13
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 |
posted 07-23-2003 22:11
It looks like you are using Perl to do your updating of the database. Is that so? code: foreach $id (@{$ids})
|