php plugin - data store in another table - need help

mugler

New Member
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:
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
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top