Example #1
0
function escribir_opcion($campo, $valor)
{
    $c = sprintf('REPLACE INTO %s SET campo="%s", valor="%s"', db_prefijo . 'opciones', db_codex($campo), db_codex($valor));
    $r = db_consultar($c);
    CargarOpciones();
    return db_afectados();
}
Example #2
0
        $output .= "\nFile: " . $entry['file'] . " (Line: " . $entry['line'] . ")\n";
        $output .= "Function: " . $entry['function'] . "\n";
        $output .= "Args: " . implode(", ", $entry['args']) . "\n";
    }
    return $output;
}
function DEPURAR($s, $f = 0)
{
    if ($f || isset($_GET['depurar'])) {
        echo '<pre>' . $s . '</pre><br /><pre>' . parse_backtrace() . '</pre><br />';
    }
}
function Mensaje($texto, $tipo = _M_INFO)
{
    switch ($tipo) {
        case _M_INFO:
            $id = "info";
            break;
        case _M_ERROR:
            $id = "error";
            break;
        case _M_NOTA:
            $id = "nota";
            break;
        default:
            return 'Error: no se definiĆ³ el $tipo de mensaje';
    }
    return "<div id=\"{$id}\">" . $texto . "</div>";
}
CargarOpciones();