Hello,
I need help with a form PHP plugin.
I have a php file for the plugin was created and these selected in the form. However, no data in my table are stored by the plugin.
In my own components of the code works.
this is the code:
the user id is a example.
My own eMail plugin works too.
Another PHP Plugin with forwarding works. I need some help please. (see example 2)
Thank you
Best Regards
I need help with a form PHP plugin.
I have a php file for the plugin was created and these selected in the form. However, no data in my table are stored by the plugin.
In my own components of the code works.
this is the code:
PHP:
<?php
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query ->insert('atc_standortdaten_log')
->set('user_id = ' . $db->quote('612'))
->set('what = ' . $db->quote('Test'));
$db->setQuery($query);
$db->execute();
?>
the user id is a example.
My own eMail plugin works too.
Another PHP Plugin with forwarding works. I need some help please. (see example 2)
PHP:
// Get a db connection.
$db = JFactory::getDbo();
$towernumber = $_GET['towernumber'];
$redirect_tid = $_GET['tid'];
// Userobjekt laden
$app = JFactory::getApplication();
$app->redirect(JRoute::_(JURI::root().'index.php?option=com_standortdaten&view=standort&id='.$redirect_tid));
Thank you
Best Regards