![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 PHP Extension Manual » Connection Functions » edb_connect |
edb_connect(<ConnectionString>) <ConnectionString> = Semi-colon-separated set of connection string keywords
Connection handle if successful, or FALSE if any errors
<?php
// The following script connects to a local
// ElevateDB configuration and database, displays
// the configuration path using the edb_connset()
// function, and then disconnects using the edb_disconnect()
// function
$con = edb_connect("type=local;charset=Ansi;configpath=C:\\Tutorial;"+
"uid=Administrator;pwd=EDBDefault;database=Tutorial");
if (!$con)
{
die("Could not connect: " . edb_errmsg());
}
echo edb_connset($con,"configpath");
edb_disconnect($con);
?>This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM | Privacy Policy © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

