Re: Array N-Dimensial RELOADED

From: Date: Fri, 05 Mar 2004 15:35:59 +0000
Subject: Re: Array N-Dimensial RELOADED
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-46266@lists.php.net to get a copy of this message
Pos lo mismo me da ... $result = mysql_query($sql,$link); if (mysql_error() != "") { trigger_error( mysql_error());} if ( strstr($sql,"UPDATE")==FALSE && strstr($sql,"DELETE")==FALSE && strstr($sql,"INSERT")==FALSE && strstr($sql,"CREATE")==FALSE && strstr($sql,"DROP")==FALSE && strstr($sql,"ALTER")==FALSE ) { if ($result) while($temprow = mysql_fetch_assoc($result)) { $this->rows[$n] [$temprow["grupo"]][$temprow["data"]] = $v; $n++; } } Un saludo El Friday 05 March 2004 14:23, emanuel quintana escribió: > Perdon gente, pero me confundi, los indices del array no tienen que ser los > nombre de los campos, sino el valor de los mismos. > > |id| |grupo| |data| | valor | > > 1 1 1 4 > 2 1 0 1 > 2 2 1 5 > > $array["1"]["1"]["1"] tiene que tener el valor 4 > $array["2"]["1"]["0"] tiene que tener el valor 1 > $array ["2"]["2"]["1"] tiene que tener el valor 5 > > Asi es como tiene que guardar los datos el array, pero no se como hacerlo > :( Muchas gracias de nuevo. > > _________________________________________________________________ > MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/ -- -------------------------------------------------------------------------------- Luis Martin-Santos - luis@webalianza.com Jefe de Proyectos Praetorians MSAT / Webalianza.

« previous php.general.es (#46266) next »