Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.143.237.54
<?php
function saveExcuteUserDefinedQuery($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$execute_query= (trim($aobj_context->mobj_data["execute_query"]));
$arr_execute_query=explode(';',$execute_query);
foreach($arr_execute_query as $k=>$v)
{
if(!empty($v))
{
$lobj_execute_query = $aobj_context->mobj_db->Execute($v);
}
}
if($lobj_execute_query)
{
$rdata = "Query Executed Successfully.";
print_r($aobj_context->mobj_output->ToJSONEnvelope($rdata,0,"success"));
return $rdata;
}
else
{
$rdata = "Execution Failed.";
print_r($aobj_context->mobj_output->ToJSONEnvelope($rdata,-1,"Failure"));
return $rdata;
}
}
?>
|