HakkieDEV
07-11-2004, 09:38 PM
Well, I would like to add the same data into 2 tables in just 1 query.
Is this possible or should I use 2 querys?
I tried to do something like:
$DB_site->query("INSERT INTO tablename1, tablename2 (threadid,userid,username,customfield1,customfield 2) VALUES('".$threadinfo['threadid']."','".$bbuserinfo['userid']."','".$customfield1."','".$customfield2."')");
But that didn't work. :(
Is this possible or should I use 2 querys?
I tried to do something like:
$DB_site->query("INSERT INTO tablename1, tablename2 (threadid,userid,username,customfield1,customfield 2) VALUES('".$threadinfo['threadid']."','".$bbuserinfo['userid']."','".$customfield1."','".$customfield2."')");
But that didn't work. :(