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 : 13.59.54.188
<?php
function uniclareSupport($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data['univcode'];
$query = "select ftechcontact, ftechemail, fwebsite from dbname where funivcode = '{$univcode}'";
$result = $aobj_context->mobj_db->GetRow($query);
if(count($result) > 0)
{
// $mob = explode(',',$result['ftechcontact']);
// $modarry = [];
// $i = 0;
// foreach($mob as $value)
// {
// $modarry['fmobileno'.$i] = $value;
// $i++;
// }
// //$modarry
$arr['ftechemail'] = $result['ftechemail'];
$arr['fwebsite'] = $result['fwebsite'];
$arr['ftechcontact'] = $result['ftechcontact'];
// fwebsite
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
else
{
$arr['msg'] = 'Support Numbers not found';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
|