Hello ,
I’ve create in Librairies configuration a Class with functions, like this ::
<?php
class WOClass{
function UTLecParam($valparam){
$requete = “SELECT cvaleur,ctaille FROM tparamet WHERE cnom = '”.$valparam."’";
sc_select(my_data, $requete, “conn_mysql”);
................
return $valretour;
}
function InitParam(){
..........
return null;
}
function IMPOccup($mmajtype,$mpsigne,$mpdate1,$mpdate2,$mptype){
…
return null;
}
}
?>
I’ve add my class into form Programming, Librairies section and in Onvalidate Event , I try to call my functions but I receive error message :
Fatal error: Call to undefined function .......
First my class was in Prject library, I changed to Public, I’ve also tried with sc_include , but same message !!!
What do I wrong ???
Thanks in advance