PHP/MySQL - updateing 2 tables in one request

Posted by Phil Jackson on Stack Overflow See other posts from Stack Overflow or by Phil Jackson
Published on 2010-04-22T11:01:12Z Indexed on 2010/04/22 11:03 UTC
Read the original article Hit count: 164

Filed under:
|
|
|

Morning, I want to learn more about sql and I'm wanting to update to tables;

$query3 = "INSERT INTO `$table1`, `$table2` ($table1.DISPLAY_NAME, $table1.EMAIL_ACCOUNT, $table2.DISPLAY_NAME, $table2.EMAIL_ACCOUNT) values ('" . DISPLAY_NAME . "', '" . EMAIL_ADDRESS . "', '" . $get['rn'] . "', '" . $email . "')";

could some one point me in the right direction on how I would go about this? current error is

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' contacts_ACT_Web_Designs (contacts_E_Jackson.DISPLAY_NAME, contacts_E_Jackson' at line 1

regards, phil

© Stack Overflow or respective owner

Related posts about php

Related posts about sql