session_start();
include "datos.php";
function poblaciones($id_usuario){
$result=mysql_query("SELECT poblacion FROM poblaciones p LEFT JOIN abogados_poblacion a ON p.id=a.id_poblacion WHERE a.id_abogado=$id_usuario ORDER BY a.orden ASC") or die(mysql_error("error2"));
$v = array();
while ($fila=mysql_fetch_array($result)){
$v[] = $fila['poblacion'];
}
//$v="hola";
return implode(', ', $v);
}
$id=$_REQUEST["id"];
$abs=mysql_query("select * from abogados where id = '$id' and $visible_en='si'",$conexion);
$ab=mysql_fetch_object($abs);
// ingles
$componentes = mysql_query("select * from especialidades where buffete = '$id'",$conexion);
while($componente = mysql_fetch_object($componentes)){
if($componente->nombre == 'English Language'){
$ingles = true;
}
}
?>