I've looked through most of the threads, but can't find an answer on how to change the 'code run' pop up text, using a php list plugin. Changing the success message doesn't seem to do anything.
I am using a php file, but i've tried using the php code field too with same result
This a condensed version of the code I'm using.
$db = JFactory::getDBO();
$user = JFactory::getUser();
$userid2 = $user->get('id');
$ids = JRequest::getVar( 'ids', array(), 'method', 'array' );
foreach ($ids AS $id) {
$row = $model->getRow($id);
$data = $row->table___data;
$InsertQuery="
INSERT INTO table (data, user) VALUES ('$data', '$userid2' )
";
$db->setQuery($InsertQuery);
$db->query();
}
I am using a php file, but i've tried using the php code field too with same result
This a condensed version of the code I'm using.
$db = JFactory::getDBO();
$user = JFactory::getUser();
$userid2 = $user->get('id');
$ids = JRequest::getVar( 'ids', array(), 'method', 'array' );
foreach ($ids AS $id) {
$row = $model->getRow($id);
$data = $row->table___data;
$InsertQuery="
INSERT INTO table (data, user) VALUES ('$data', '$userid2' )
";
$db->setQuery($InsertQuery);
$db->query();
}