Hello,
I have 2 tables: Offre and Archive
fields of the table Offre:
id_Of
Fournisseur
Pays
...
fields of the table Archive
id_Of
Fournisseur
Pays
.....
When I change the table fields Offre I want to update the fields in the Archive table.
I used: function AfterEdit ...
global $conn, $numID;
$numID = $_SESSION["id_Of"];
$strSQLExists = "select * from archive where id_Of = "$numID"";
$rsExists = db_query($strSQLExists,$conn);
$data=db_fetch_array($rsExists);
if($data)
{
$sql = "update archive set id_Of=".$values["id_Of"]."Fournisseur=".$values["Fournisseur"]";
}
I can not!
Thank you for your help
Patrick