PHP: ifx_htmltbl_result - Manual

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: Sat, 27 Jan 2007

view this page in

# ifx_htmltbl_result

(PHP 3 >= 3.0.3, PHP 4, PHP 5)

ifx_htmltbl_result -- Formats all rows of a query into a HTML table

## Description

int ifx_htmltbl_result ( resource result_id [, string html_table_options] )

Returns the number of rows fetched or `FALSE` on error.

Formats all rows of the `result_id` query into a HTML table. The optional second argument is a string of <table> tag options

Пример 1. Informix results as HTML table

`<?php
$rid = ifx_prepare ("select * from emp where name like " . $name,
$connid, IFX_SCROLL);
if (! $rid) {
/* ... error ... */
}
$rowcount = ifx_affected_rows ($rid);
if ($rowcount > 1000) {
printf ("Too many rows in result set (%d)\n<br />", $rowcount);
die ("Please restrict your query<br />\n");
}
if (! ifx_do($rid)) {
/* ... error ... */
}
ifx_htmltbl_result ($rid, "border=\"2\"");
ifx_free_result($rid);
?>`

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

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST