Пример #1
0
function create_db()
{
    $tpl = new templates();
    $influx = new influx();
    $postgres = new postgres_sql();
    $postgres->CREATE_DATABASE(trim($_POST["new-db"]));
    if (!$postgres->ok) {
        echo $postgres->mysql_error;
    }
}