Tengo un problema con este script de PHP:
Código PHP:
if($Buscar==1){
while(!$rsContratos->EOF)
{
$CadenaContratos = $rsContratos->fields[0] . "," . $rsContratos->fields[1] . "," . $rsContratos->fields[2];
$cadena2 = "select s.nombre, ts.nombre, cs.fecha_activacion,cs.estado from contrato c, contrato_servicio cs, area_economica ae, servicio s, tipo_servicio ts where ae.area_economica = cs.area_economica and s.servicio = ae.servicio and ts.tipo_servicio = s.tipo_servicio and cs.contrato = " . $rsContratos->fields[0] . " and c.cliente = " . $Cliente;
echo "Consulta: '$cadena2' ";
$rsServicios = &$ADODB_SESS_CONN->Execute($cadena2);
$registros = $rsServicios->RecordCount();
echo "Registros: $registros";
$CadenaServicios = "";
while(!$rsServicios->EOF)
{
if($CadenaServicios != "")
{
$CadenaServicios .= "/";
}
$CadenaServicios .= $rsServicios->fields[0] . "," . $rsServicios->fields[1] . "," . $rsServicios->fields[2] . "," . $rsServicios->fields[3];
echo "CadenaServicios: $CadenaServicios";
$rsServicios.MoveNext();
}//del while $rsServicios
echo '<option value="' . $CadenaContratos . ":" . $CadenaServicios . '">' . $CadenaContratos . '</option>';
$rsContratos->MoveNext();
}//del while $rsContratos
}
saludos!