<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ibase.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.ibase-query.php',
    1 => 'ibase_query',
    2 => 'F&uuml;hrt eine Abfrage auf einer InterBase Datenbank aus',
  ),
  'up' => 
  array (
    0 => 'ref.ibase.php',
    1 => 'Firebird/InterBase Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.ibase-prepare.php',
    1 => 'ibase_prepare',
  ),
  'next' => 
  array (
    0 => 'function.ibase-restore.php',
    1 => 'ibase_restore',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/ibase/functions/ibase-query.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ibase-query" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ibase_query</h1>
  <p class="verinfo">(PHP 5, PHP 7 &lt; 7.4.0)</p><p class="refpurpose"><span class="refname">ibase_query</span> &mdash; <span class="dc-title">Führt eine Abfrage auf einer InterBase Datenbank aus</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ibase-query-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ibase_query</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$link_identifier</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$query</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bind_args</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span></div>

  <p class="simpara">
   Führt eine Abfrage auf einer InterBase Datenbank aus.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ibase-query-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">link_identifier</code></dt>
    <dd>
     <span class="simpara">
      Eine InterBase Verbindungskennung. Wenn ausgelassen, wird die zuletzt
      geöffnete Verbindung angenommen.
     </span>
    </dd>
   
   
    <dt><code class="parameter">query</code></dt>
    <dd>
     <span class="simpara">
      Eine InterBase Abfrage.
     </span>
    </dd>
   
   
    <dt><code class="parameter">bind_args</code></dt>
    <dd>
     <span class="simpara">
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ibase-query-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   Erzeugt die Abfrage einen Fehler, wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben. Ist sie
   erfolgreich und es gibt eine (möglicherweise leere) Ergebnismenge (so wie
   bei einer SELECT Abfrage), wird eine Ergebniskennung zurückgegeben. War die
   Abfrage erfolgreich und es gibt keine Ergebnisse, wird <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurückgegeben.
  </p>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <span class="simpara">
    Unter PHP 5.0.0 und höher gibt diese Funktion die Anzahl der Zeilen zurück,
    die von der Abfrage für INSERT, UPDATE und DELETE Anweisungen betroffen
    waren. Um die Abwärtskompatibilität zu erhalten, wird <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> für diese
    Anweisungen zurückgegeben, wenn die Abfrage erfolgreich war, aber keine
    Zeilen betraf.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 errors" id="refsect1-function.ibase-query-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="simpara">
   Erhalten Sie Fehlermeldungen wie &quot;arithmetic exception, numeric overflow, or
   string truncation. Cannot transliterate character between character sets&quot;
   (diese treten auf, wenn Sie Zeichen mit Akzent verwenden), wenn Sie diese
   Funktion und <span class="function"><strong>ibase_query()</strong></span> verwenden, müssen Sie den
   Zeichensatz (d.h. ISO8859_1 oder Ihren aktuellen Zeichensatz) einstellen.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ibase-query-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 <span class="function"><strong>ibase_query()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$host </span><span style="color: #007700">= </span><span style="color: #DD0000">'localhost:/pfad/zu/ihrer.gdb'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$dbh </span><span style="color: #007700">= </span><span style="color: #0000BB">ibase_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$host</span><span style="color: #007700">, </span><span style="color: #0000BB">$username</span><span style="color: #007700">, </span><span style="color: #0000BB">$password</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$stmt </span><span style="color: #007700">= </span><span style="color: #DD0000">'SELECT * FROM tblname'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$sth </span><span style="color: #007700">= </span><span style="color: #0000BB">ibase_query</span><span style="color: #007700">(</span><span style="color: #0000BB">$dbh</span><span style="color: #007700">, </span><span style="color: #0000BB">$stmt</span><span style="color: #007700">) or die(</span><span style="color: #0000BB">ibase_errmsg</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ibase-query-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.ibase-errmsg.php" class="function" rel="rdfs-seeAlso">ibase_errmsg()</a> - Gibt eine Fehlermeldung zur&uuml;ck</span></li>
   <li><span class="function"><a href="function.ibase-fetch-row.php" class="function" rel="rdfs-seeAlso">ibase_fetch_row()</a> - Ruft eine Zeile aus einer InterBase-Datenbank ab</span></li>
   <li><span class="function"><a href="function.ibase-fetch-object.php" class="function" rel="rdfs-seeAlso">ibase_fetch_object()</a> - Liest einen Datensatz einer InterBase-Datenbank als Objekt ein</span></li>
   <li><span class="function"><a href="function.ibase-free-result.php" class="function" rel="rdfs-seeAlso">ibase_free_result()</a> - Gibt eine Ergebnismenge frei</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>