Hello,
With the following string you can update/fill a table:
-------------
$sql = "INSERT INTO tableA (name,address,fax,email) VALUES
('$name','$address','$fax','$email')";
-------------
That's easy ands works. But now i want to insert values to another table at the same time. I tried something like this:
-------------
$sql = "INSERT INTO tableA, tableB (name,address,fax,email,valueB) VALUES
('$name','$address','$fax','$email','$valueB')WHERE tableA_id = tableB_id ";
-------------
But that won't work. Who can help me?
Greets,
Joep
[sig][/sig]
With the following string you can update/fill a table:
-------------
$sql = "INSERT INTO tableA (name,address,fax,email) VALUES
('$name','$address','$fax','$email')";
-------------
That's easy ands works. But now i want to insert values to another table at the same time. I tried something like this:
-------------
$sql = "INSERT INTO tableA, tableB (name,address,fax,email,valueB) VALUES
('$name','$address','$fax','$email','$valueB')WHERE tableA_id = tableB_id ";
-------------
But that won't work. Who can help me?
Greets,
Joep
[sig][/sig]