Can we run mysql queries in hooks?
Posted: 2013-06-27 10:48
Hello,
I would like to know if it is possible to run mysql queires through hooks please:
function tablename_before_insert(&$data, $memberInfo, &$args){
return TRUE;
}
If yes, do we have to create a mysql connection in each hook file or does your file connect automatically?
Thank you,
Ben
I would like to know if it is possible to run mysql queires through hooks please:
function tablename_before_insert(&$data, $memberInfo, &$args){
return TRUE;
}
If yes, do we have to create a mysql connection in each hook file or does your file connect automatically?
Thank you,
Ben