</p>
<p>The example below shows how to acquire a database handle and return information from a table:</p>
<pre class="prettyprint lang-lua">
-function handler(r)
+function handle(r)
-- Acquire a database handle
local database, err = r:dbacquire("mysql", "server=localhost,user=root,dbname=mydb")
if not err then
<?xml version="1.0"?>
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1452834 -->
+<!-- English Revision: 1452834:1455272 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->