I don’t know if this post is duplicate.I found some php file which consist of JQuery DataTable and was made by someone(I don’t know where the developer lies).
This query’s function is to show data inside Database, The query like:
case 'average' :
$needfieldname=false;
$month=getVar('calcmonth');
$sql="SELECT SQL_CALC_FOUND_ROWS ID,name,remark,avrusepmonth
, CONCAT('<input type=''checkbox''id=''cb' , ID ,''' name=''check[]'' value=''',ID,''' >'
,'<label class=''lbcb'' for=''cb', ID,'''><=update=</label>') as checkb
, moq, leadtime
FROM test_media ";
break;
what I want to ask here is this part :
monthavrage(ID,".$month.") as latestavr
what kind of Mysql function at query above? cause I got an error like:
FUNCTION TestMediaControl.monthavrage does not exist
i have found a SQL file which declare of monthavrage function.
I’m just need to execute this file, so my problem is disappear.