|
LPC Library Functions: db_connect |
|
NAMEdb_connect() - connect to a SQL database
SYNOPSISint db_connect( string host, string database )
DESCRIPTIONdb_connect() creates a database connection to the database on host 'host' with the name 'database'. Note that this means you can connect to database servers running on machines other than the one on which the mud is running. It will connect based on settings established at compile time for the user id and password (if required). If successful, db_connect() returns a new database handle. Note that this efun is only available if the driver flag PACKAGE_DB is defined. SEE ALSOdb_close(), db_commit(), db_exec(), db_fetch(), db_rollback() |
|
Page design by Frank Jacquette & Tim Hollebeek Copyright (C) 1998 Tim Hollebeek & Frank Jacquette |
|