Example #1
0
function generaIndices($tema_id)
{
    $tema_id = secure_data($tema_id, "sql");
    $indice_temas = bucle_arriba($tema_id . '|', $tema_id);
    return $indice_temas;
}
Example #2
0
function otro_bucle_arriba($sql)
{
    while ($lista = mysqli_fetch_row($sql)) {
        if ($lista[0] > 0) {
            $indice_temas .= bucle_arriba($lista[0] . '|', $lista[0]);
        }
    }
    return $indice_temas;
}
function otro_bucle_arriba($sql)
{
    while ($lista = $sql->FetchRow()) {
        if ($lista[0] > 0) {
            $indice_temas .= bucle_arriba($lista[0] . '|', $lista[0]);
        }
    }
    return $indice_temas;
}