Goto main content

disconnect

Disconnect to a databse

DISCONNECT

NAME

disconnect - Disconnect to a databse

SYNOPSIS

disconnect(pointer);

DESCRIPTION

This function is used to disconnect from database.

EXAMPLES

            a = connect(dbname:"extenso",dbpass:"....",dbuser:"extenso");
            a.type();
            x=sql(db:a,single:true,wantarray:true,"SELECT DATABASE()");
            x.rows[0];
            x=sql(single:true,wantarray:true,"SELECT DATABASE()");
            x.rows[0];
            disconnect(a);

SEE ALSO

{{ include("includes/database.sn") }}

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.