JBosir
Member
addition to buttons to modify, view and delete, I want to add another button.
The first attempt was with php plug-ins.
I do not get the data return $campid.
The second attempt is to update_col.
The Update function works for me except for the elements complement "radobutton" returns the result blank. (The item "state" must go 0 to 1. But it has more options).
Thanks.
The first attempt was with php plug-ins.
PHP:
//$campid = JRequest::getVar('mv_campaigns___conditions');
$campid = $formModel->formData['mv_campaigns___conditions'];
$db = JFactory::getDbo();
$sql = "UPDATE mv_campaigns SET conditions='0' WHERE campaignId = .$campid";
$db->setQuery($sql);
$db->query();
I do not get the data return $campid.
The second attempt is to update_col.
The Update function works for me except for the elements complement "radobutton" returns the result blank. (The item "state" must go 0 to 1. But it has more options).
Thanks.