&reftitle.examples;
Basic usage All examples in the MaxDB PHP documentation use the HOTELDB demo database from MaxDB. More about this database can be found at &url.maxdb.sampledb;. To use the examples in the MaxDB PHP documentation, you have to load the tutorial data into your database. Then you have to set maxdb.default_db in &php.ini; to the database that contains the tutorial data. This simple example shows how to connect, execute a query, print resulting rows and disconnect from a MaxDB database. MaxDB extension overview example \n"; while ($line = maxdb_fetch_array($result, MAXDB_ASSOC)) { echo " \n"; foreach ($line as $col_value) { echo " $col_value\n"; } echo " \n"; } echo "\n"; /* Free resultset */ maxdb_free_result($result); /* Closing connection */ maxdb_close($link); ?> ]]> The following example shows how to bind variables to a SELECT INTO statement. Example for use of SELECT INTO statements ]]> The following example shows how to use MaxDB database procedures. Example fore using database procedures ]]>