Ejemplo n.º 1
0
if($search){

$getData = new mainpage_query();

if($methodSearch=='login'){
$arrSearch = $getData ->getAllfromtableLogin($search,$blocked);
}

if($methodSearch=='email'){
$arrSearch = $getData ->getAllfromtableEmail($search,$blocked);
}

if($methodSearch=='name'){
$arrSearch = $getData ->getAllfromtableName($search,$blocked);
}

if($methodSearch=='sername'){
$arrSearch = $getData ->getAllfromtableSername($search,$blocked);
}

if(count($arrSearch)==0){
	$arrSearch['mistake'] = 'mistake';
}else{

}

echo json_encode($arrSearch);

}
?>