Icon edb_user

Returns the current user name for a connection.

Syntax
edb_user(<ConnectionHandle>)

<ConnectionHandle> =

Handle of connection returned by edb_connect function

Returns
The user name (STRING) if successful, or
FALSE if any errors

Usage
The edb_user function returns the user name for a connection.

Examples
<?php

// The following script connects to a local
// ElevateDB configuration and database, displays
// the user name using the edb_user()
// 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_user($con);
edb_disconnect($con);
?>
Image