Hi
i have a php script. The sql portion is:
$sql = "
INSERT into $table_name1
( id , name, products, contact, position, address, city, area, postcode, country, tel, fax, email, website, date)
VALUES
(\"$id\", \"$name\", \"$products\", \"$contact\", \"$position\", \"$address\", \"$city\", \"$area\", \"$postcode\", \"$country\", \"$tel\", \"$fax\", \"$email\", \"$website\", CURDATE())";
$result = @($sql, $connection) or die ("could not execute query.");
$sql = "
INSERT into $table_name2
(customerid, eng, fre, spa)
VALUES
( \"$id\"source\", \"$french\", \"$spanish\")";
$result = @($sql, $connection) or die ("could not execute query.");
The first id in $table_name1
is an auto-increment and is inserted automatically when a new row is added.
In $table_name2 i want to insert the same id as in $table_name1.
Any help please.
Regards