Change PRI Line
'; $rows = getadmusers(); $i=0; //while($row=mysqli_fetch_array($rs)) { foreach($rows as $row) { $i++; if($row[1]=='CHN') $scee = "CHENNAI"; else if($row[1]=='BNG') $scee = "Bangalore"; else if($row[1]=='GSM') $scee = "GSM SIM"; else if($row[1]=='voip') $scee = "VOIP"; else $scee = "No Record"; $html.=' '; } $html.='
         
sno Username Current Status Change Status to
'.$i.' '.$row[0].'   '.$row[1].'
           
'; return $html; } function getadmusers() { global $inputs,$dbase; $sql = "select u_username,call_scenerio from aadmiin where call_scenerio <> ''"; return $dbase->db_sql_query($sql); } function changeline() { global $inputs,$dbase; $scene = $inputs->scene; $user = $inputs->user; if($scene=='CHN' || $scene=='GSM') $call_type = 'Local'; else $call_type = 'voip'; $sql = "update aadmiin set call_scenerio = '$scene',call_type='$call_type' where u_username = '$user'"; $rs = $dbase->db_sql_query($sql); $html = '1'; return $html; }