paralosreg
New Member
Hi. Im trying to update a field stored in another list when I send a form. I have a unique value to identify in both lists. I tried this code.
Many Thanks
PHP:
$fecha='{fab_extintores_recargas___extintores_recargas_fecha_recarga}';
$extintor='{fab_extintores_recargas___extintores_recargas_extintores}';
$db =&JFactory::getDBO();
$db->setQuery("UPDATE fab_extintores SET fab_extintores___extintores_ultima_recarga = '$fecha' WHERE fab_extintores___extintores_numero = '$extintor'");
$db->query();