Changes

Jump to navigation Jump to search
193 bytes added ,  19:07, 5 February 2011
<p>The query execution works as follows:</p>
#Create a new session instance with hostname, port, username and password.#Call the <code>query()</code> function of the session with the query as argument to get your query object.#Optionally bind variables to the query with the <code>bind()</code> function.#Initialize query output via <code>init()</code>.#Iterate through the query object with the <code>more()</code> and <code>next()</code> functions. If an error occurs, an exception is thrown.# As an alternative, call <code>execute()</code> to get the whole result at one time.# Optionally, call <code>info()</code> to get information on the number of results, query time, etc.#Close the query with <code>close()</code>.
==Example in [https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ PHP]==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu