Okay, i have tried now many different things and start reading the documentary about the Triggers but i cant get them running.
So i´ve made a test code looking like that:
class ProTrigger extends JPlugin {
}
function onAfterProductUpdate(&$element) {
$dbhost = 'HOST';
$dbuser = 'USER';
$dbpass = 'PASS';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if(! $conn )
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db('DB');
$SQL = "INSERT INTO jos_test_table (pro_id, art_nr, off, art_nr_ver) VALUES ('999', 'test accomplished', '1', 'test accomplished')";
mysql_query($SQL);
}
so i wanted to see if the trigger is working correctly. but there is absolutely no data in the DB.
so i think i am missing something in the code.
thx for your help.