• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: SQL db module off

SQL db module off 8 months 3 weeks ago #43574

hello I am looking to make a cation which validates a module with id 114
$db  = Joomla\CMS\Factory :: getDbo ( ) ;
$module = Joomla\CMS\Helper\ModuleHelper::getModule();
 
$db->setQuery("UPDATE `#__modules ` SET `published` = ".$db->escape($_POST['form']['choix'])." WHERE `#__modules`.`id` = 114");
 
$db->query();

My request works, but I can't get it with rsform :
UPDATE `loxx_modules` SET `published` = '0' WHERE `loxx_modules`.`id` = 114;
thanks

I have this error:
Too few arguments to function Joomla\CMS\Helper\ModuleHelper::getModule(), 0 passed in /home/clients/f9945910e33c81967a126787c33211ef/sites/monsite.ch/administrator/components/com_rsform/helpers/rsform.php(2675) : eval()'d code on line 2 and at least 1 expected
Last Edit: 8 months 3 weeks ago by doublemetre.
The administrator has disabled public write access.

SQL db module off 8 months 2 weeks ago #43579

Disabling a query module does not work
$db = Joomla\CMS\Factory :: getDbo ();
$module = Joomla\CMS\Helper\ModuleHelper::getModule();
$db->setQuery("UPDATE `#__modules ` SET `published` = ".$db->escape($_POST['form']['choix'])." WHERE `$module`.`id` = 114");
$db->setQuery($query);
$result = $db->EXECUTE();​
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!