im trying to get php to generate a password and store it in MySQL i am using ImpAKT a php DMX module, i have a little understanding of PHP but this has me completely stumped...
i have tried everything i can think of. any advice would be most appreciatd
<?php
//start trigger GenPswd1
//remove this line if you want to edit the code by hand
function KT_TriggerBEFORE_GenPswd1(&$tNG) {
array_push($tNG->columnsName, 'password');
array_push($tNG->columnsValue,generateNewPassword(8));
array_push($tNG->columnsType, STRING_TYPE);
$tNG->generateColumnsAssoc();
}
//end trigger GenPswd1