Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/05/2006, 13:14
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Prueba esto:

Código PHP:
<?php
    $imp 
split","$results['IMP_ASOC'][0] ); // devuelve array
    
$cont count$imp ); //cuenta elementos del array
    
$separador "";
    for(
$i=0$i $cont$i++ ){
        
$sql_user "SELECT * FROM J_PENTA.J_NOTICIAS WHERE ID_NOTICIA =".$imp[$i]."";
        
$parsed ociparse($db_conn$sql_user);
        
ociexecute($parsed);
        
$nrows ocifetchstatement($parsed$results);
        if ( 
$i ){
            
$separador ",";
        }
        
$res .= $separador $results['TITULO'][$i];
    }
    echo 
$res;
?>