Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/02/2009, 09:51
Avatar de Montu
Montu
 
Fecha de Ingreso: enero-2009
Mensajes: 23
Antigüedad: 15 años, 3 meses
Puntos: 0
Mensaje Dudas Códifo

Tengo problemas con un código ... a ver si me podéis ayudar?

Códico:

Código PHP:
<?php
$query 
"SELECT * FROM recaudaciones ORDER BY hospital ASC"// ok sin problemas
$result_padre mysql_query($query); // ok sin problemas
while ($rp mysql_fetch_array($result_padre)) { // ok sin problemas

    
$count="0"// ok sin problemas
    
echo "var ".$rp[CATEGORIA]."=new Array()\n"// que hace esto?¿?¿
    
echo $rp[CATEGORIA]."[".$count."] = new slctr('- -".$rp[CATEGORIA]."- -')\n"// y esto?¿?¿

    
$query "SELECT * FROM hijo WHERE CATEGORIA='".$rp[CATEGORIA]."' ORDER BY SUBCATEGORIA ASC";
    
$result_hijo mysql_query($query);
    while (
$rh mysql_fetch_array($result_hijo)) {

        
$count++;
        echo 
$rp[CATEGORIA]."[".$count."] = new slctr(\"".$rh[SUBCATEGORIA]."\",'".$rh[SUBCATEGORIA]."')\n"; }

    echo 
"\n"; } ?>