Hi friend,
i have done that you said me but it´s doesn´t work. I don´t have idea so much about php and i think that something do wrong this is tthe code that i have
$sql='SELECT DISTINCT email,name,phone FROM '.CLIENTS_TABLE.' WHERE email LIKE \''.$input.'%\' ORDER BY created LIMIT '.$limit;
$resp=db_query($sql);
if($resp && db_num_rows($resp)){
while(list($email,$name,$phone)=db_fetch_row($resp)) {
$name=(strpos($name,'@')===false)?$name:'';
$items ='{"id": "'.$email.'", "value": "'.$email.'", "info": "'.$name.'|'.$phone.'"}';
}
}
$result= '{"results": }';
return $result;
}
Please could you help me?
Thanks a lot you are doing me a big favour.