Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/05/2009, 04:05
sergi_climent
 
Fecha de Ingreso: enero-2005
Ubicación: Barcelona
Mensajes: 1.473
Antigüedad: 19 años, 3 meses
Puntos: 10
Respuesta: ayuda con getrows

sino estoy mal informado esa es nua funcion de ASP.

segun lo q he visto googleando puedes emularla con una simple function:

Código PHP:
<?php 
function GetRows($handle

/* 
    This function emulates the ASP GetRows function. It creates a 2 dimensional 
  array of the data set where the : 

    1st dimension is the row number of the data 
    2nd dimension are the data fields 

    Returns a two dimensional array if there are record or false if no records 
  come out of the query 
*/ 

    
if (mysql_num_rows($handle)>0){ 

    
//initialize the array 
      
$RsArray1   = array(); 

    
//loop thru the recordset 
      
while ($rows mysql_fetch_array($handle)) 
      { 
             
$RsArray1[] = $rows
      } 
//wend 
      
return $RsArray1
    }else{ 
      
//no records in recordset so return false 
      
return false
    } 
//end if 
    //close the connection 
  
mysql_close($handle); 

//end function 
?>
http://www.weberdev.com/get_example-4065.html

aunque por otro lado tambien he visto lo siguiente:

http://phplens.com/adodb/reference.f...s.getrows.html

donde pone q esa funcion pertenece el Adodb.
__________________
"Cada hombre es el hijo de su propio trabajo"
Miguel de Cervantes Saavedra
"La experiencia es algo que no consigues hasta justo depués de necesitarla"
Laurence Olivier