PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ifx_nullformat> <ifx_getsqlca
Last updated: Fri, 04 Jul 2008

view this page in

ifx_htmltbl_result

(No version information available, might be only in CVS)

ifx_htmltbl_result — Gibt alle Zeilen einer Abfrage als HTML-Tabelle formatiert zurück

Beschreibung

int ifx_htmltbl_result ( int $result_id [, string $html_table_options ] )

Gibt die Anzahl der gelesenen Zeilen aus oder FALSE bei einem Fehler.

Gibt alle Zeilen der durch result_id bestimmten Abfrage fornmatiert in einer HTML-Tabelle zurück. Das optionale zweite Argument ist ein String mit <table>-Tag Optionen.

Beispiel #1 Informix Ergebnisse als HTML Tabellen

<?php
$rid 
ifx_prepare ("select * from emp where name like " $name,
                     
$connidIFX_SCROLL);
if (! 
$rid) {
  
/* ... Fehler ... */
}
$rowcount ifx_affected_rows ($rid);
if (
$rowcount 1000) {
    
printf ("Zu viele Zeilen in der Ergebnismenge (%d)\n<br />"$rowcount);
    die (
"Bitte beschränken Sie die Abfrage<br />\n");
}
if (! 
ifx_do($rid) {
  
/* ... Fehler ... */
}

ifx_htmltbl_result ($rid"border=\"2\"");

ifx_free_result($rid);
?>



add a note add a note User Contributed Notes
ifx_htmltbl_result
There are no user contributed notes for this page.

ifx_nullformat> <ifx_getsqlca
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites