<html>
<head>
<title>BabelKit PHP Handle Creation</title>
<link rel="STYLESHEET" type="text/css" href="main.css">
</head>
<!--
Copyright (C) 2003 John Gorman <jgorman@webbysoft.com>
http://www.webbysoft.com/babelkit
-->
<body bgcolor="#F0FFFF" text="#000000"
link="#873852" vlink="#873852" alink="#B52E2E">
<center>
<table width="600">
<tr>
<td>
<div align="right">
[<a href="bk_quick_php.html">PHP API</a>]
[<a href="index.html">Index</a>]
[<a href="bk_quick_perl.html">Perl API</a>]
</div>
<center><h2>
<a href="http://www.webbysoft.com/babelkit">BabelKit</a>
PHP Handle Creation</h2></center>
How to create a new PHP BabelKit access handle.
<h4>new BabelKit()</h4>
<pre>
require_once('BabelKit.php');
$babelkit = new BabelKit($dbh, array(
'table' => 'bk_code'
)):
</pre>
<p>
The new BabelKit() method returns a new BabelKit handle
object.
<p>
$dbh must be either a PEAR DB, ADODB, or a phplib database handle.
If you plan to update the code table set it to autocommit mode.
<p>
The optional 'table' parameter can be used to specify
which of several physical code tables to use.
The default is 'bk_code'.
<h4>Database Connection Examples</h4>
The best database connection example code to look at is
in the php/bk_connect.inc file.
<p>
<div align="right">
[<a href="bk_quick_php.html">PHP API</a>]
[<a href="index.html">Index</a>]
[<a href="bk_quick_perl.html">Perl API</a>]
</div>
</td>
</tr>
</table>
</center>
</body>
</html>