Joomla 3.7 PHP 7.0
I would like to put a php in a list to add a new record that returns the same value as a field in the first record.
this the code php
defined('_JEXEC') or die();
$db = JFactory::getDbo();
$user =& JFactory::getUser();
$query = "INSERT INTO tm_schede (`id_allen`)
VALUES ('{tm_schede___id_allen}')";
$db->setQuery($query);
$result = $db->execute();
the code add the record but the value in the field is "{tm_schede___id_allen}"
Is a code error or can not use the placeholder?
thanks
I would like to put a php in a list to add a new record that returns the same value as a field in the first record.
this the code php
defined('_JEXEC') or die();
$db = JFactory::getDbo();
$user =& JFactory::getUser();
$query = "INSERT INTO tm_schede (`id_allen`)
VALUES ('{tm_schede___id_allen}')";
$db->setQuery($query);
$result = $db->execute();
the code add the record but the value in the field is "{tm_schede___id_allen}"
Is a code error or can not use the placeholder?
thanks