(PHP 5, PHP 7 < 7.4.0)
ibase_num_fields — Ermittelt die Anzahl der Felder einer Ergebnismenge
Ermittelt die Anzahl der Felder einer Ergebnismenge.
result_id
Eine InterBase Ergebniskennung.
Gibt die Anzahl der Felder als Ganzzahl zurück.
Beispiel #1 ibase_num_fields() Beispiel
<?php
$rs = ibase_query("SELECT * FROM tablename");
$coln = ibase_num_fields($rs);
for ($i = 0; $i < $coln; $i++) {
$col_info = ibase_field_info($rs, $i);
echo "Name: " . $col_info['name'] . "\n";
echo "Alias: " . $col_info['alias'] . "\n";
echo "Relation: " . $col_info['relation'] . "\n";
echo "Länge: " . $col_info['length'] . "\n";
echo "Typ: " . $col_info['type'] . "\n";
}
?>
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant